NNTP Posting

I've been looking the last few days on how to use .NET to post messages to NNTP.  My intentions are to create a NNTP posting plugin for NewsGator.  My research today left me with a good tutorial and code (in C#) on how to communicate with a NNTP server...however, whenever I attempt to post to my NNTP server it errors with a "503 - Command Not Recognized" message.  I'm just wondering if anyone has successfully been able to post items to a NNTP server with .NET, as well as, does anyone have any other good resources?  I realize they're are a few 3rd party NNTP components out there (IP* Works and Active Up) but since this would be a plugin for NewsGator, I couldn't be able to utilize those.  Any help would be appreciated.

Update: Randy (the author of the tutorial) just sent me some updated code.  In the Post() code, you shouldn't append the newsgroup, but rather just send a "POST" message.

2 Comments

  • I'm actually preparing v0.1, I've got it working with the help of Randy.

  • Matt-



    One thing you might find handy to have when you do this, is to have a packet sniffer on your Internet NIC. When you keep running a command that fails, open the sniffer, get the command text sent to the server and compare with the RFC.



    Network Monitor, included with XP & 2003 will work for this, as it allows only local machine monitoring. For a promiscuous sniffer (monitoring other machines), you'll have to grab NetMon from the SMS CD or a service pack (both of which you can grba off MSDN, trials, etc).

Comments have been disabled for this content.