Downloading from Usenet via NZB files / nntp library?

Just starting out? Need help? Post your questions and find answers here.
Carraway
New User
New User
Posts: 2
Joined: Sun Aug 05, 2007 8:33 am
Location: New York, NY

Downloading from Usenet via NZB files / nntp library?

Post by Carraway »

Hi guys,

I'm trying to design a program that will parse an NZB file and download the corresponding binary from Usenet, but I'm having trouble figuring out what the best way to approach this would be.

I've looked around and there doesn't seem to be any kind of nntp library for Purebasic (a search for 'nntp' didn't turn up much). I looked into using an external command-line utility, but my only option was nget and incredibly that can't grab specific MessageIDs which is required when parsing an NZB file.

Anyone know what the proper course of action might be here? Is there a Windows API that might have NNTP functionality? etc.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

http://en.wikipedia.org/wiki/Nntp

And Wikipedia just teached me something new...again. *laughs*
The IMAP protocol can also be used for reading newsgroups.
O.o
Carraway
New User
New User
Posts: 2
Joined: Sun Aug 05, 2007 8:33 am
Location: New York, NY

Post by Carraway »

I did not know that either! Unfortunately it seems PureBasic's support for IMAP is scarce as well.
majk
New User
New User
Posts: 6
Joined: Wed Jun 07, 2006 2:48 pm

Post by majk »

Is there a Windows API that might have NNTP functionality? etc.
Why? The NNTP Commands are such simple.

(1) Open a Network Connection to your NNTP Server
(2) Authenticate yourself (User / Pass)
(3) Request Posting with Message-ID <xyz@something>
(4) Receive Posting
(5) Decode

I think the most complicated part ist 5 (Decoding), because you had to develope yENC decoding. The www.yenc.org Homepage is currently not aviable :( You will find some other useful informations on http://en.wikipedia.org/wiki/YEnc
Post Reply