eWorld.UI - Matt Hawley

Ramblings of Matt

NNTP Posting

January 21, 2004 22:02 by matthaw

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.



Comments

January 22. 2004 02:05

I haven' t looked at the code or know if they have implmented it yet but.... the new asp.net forums will allow reading and posting to NNTP newsgroups.



http://forums.asp.net/Forums/">http://forums.asp.net/Forums/



Might be some good c# code to check out

http://

January 22. 2004 02:14

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

Matt Hawley

January 23. 2004 02:41

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).

Brian Desmond

Comments are closed

Copyright © 2000 - 2024 , Excentrics World