Thread View: news.software.nntp
3 messages
3 total messages
Started by Dan Mocharnouk
Thu, 01 Apr 2004 16:35
Writing news reader ...
Author: Dan Mocharnouk
Date: Thu, 01 Apr 2004 16:35
Date: Thu, 01 Apr 2004 16:35
53 lines
2464 bytes
2464 bytes
I am trying to do a project to write a toy news client. To write properly, I am doing hand experience by sending commands. I am trying a few news servers. On most of them I have successfully tried basic things like getting date article body, posting etc. On one of them I am having problem with post command. When I give a dot, it does not do anything. It just sits there. With that one when I say post followed immediately by a dot, it says incomplete. I have tried dot after one or more header and it says incomplete. But if I put message text and put dot, it does nothing. The following is help output from that server. If you want to know the server, send me an email. What is (GC 2.4.74) ? Is it a \r problem? I have tried to read the rfc and tried putting \r after every line of message text ie crlf but there is no success. ie have tried a bunch of possibilities with this one server w/o success. 200 News.myISP.Com AUTHINFO USER xxxxxxxxxxxxx 381 more authentication required AUTHINFO PASS xxxxxxxxxxxxx 281 news.myISPfeed.com help 100 help (GC 2.4.74) article [<messageid>|number] authinfo type value body [<messageid>|number] date group newsgroup head [<messageid>|number] help last list listgroup newsgroup mode reader newgroups yyyymmdd hhmmss [GMT] newnews newsgroups yyyymmdd hhmmss [GMT] next post stat xhdr field range xover range xpat field range pattern quit .. I am reading the .a libraries also. Ignorantly, Dan Mocharnouk
Re: Writing news reader ...
Author: Mark Carrington
Date: Thu, 01 Apr 2004 18:53
Date: Thu, 01 Apr 2004 18:53
30 lines
1862 bytes
1862 bytes
Dan,
A POST command should look something like this:
[c] POST
[s] 340 Send article to be posted
[c] From: name
[c] Subject: test message
[c] Newsgroups: test.group
[c]
[c] Message body here
[c] .
[s] 240 Article posted ok
Each of the lines must be terminated with a CRLF pair, and there must be a
single blank line between the header and the body. You must also include a
space between the colon following the header name and the value of the
header.
Hope this helps,
Mark Carrington
mark.carrington@mutantpenguin.co.uk
http://www.mutantpenguin.co.uk/
--
MPNews - host your own newsgroups and access them via the web!
http://www.mpnewsserver.com/
Re: Writing news reader ...
Author: Curt Welch
Date: Thu, 01 Apr 2004 20:32
Date: Thu, 01 Apr 2004 20:32
55 lines
3713 bytes
3713 bytes
gambler@techemail.com (Dan Mocharnouk) wrote: > I am trying to do a project to write a toy news client. I hope it's not a spam posting tool or something intented to disrupt Usenet. > To write properly, I am doing hand experience by sending > commands. I am trying a few news servers. On most of > them I have successfully tried basic things like > getting date article body, posting etc. On one of them > I am having problem with post command. When I give a dot, > it does not do anything. It just sits there. With that one > when I say post followed immediately by a dot, it says > incomplete. I have tried dot after one or more header and > it says incomplete. But if I put message text and put dot, > it does nothing. The following is help output from > that server. If you want to know the server, send > me an email. What is (GC 2.4.74) ? That means nothing to me. Looks like a software version number however. It might be the version number of the server you are using though putting it in the help output seems odd to me for a Usenet server. Sounds like something a PC programmer would do since windows apps like to put version information in the "about" section of the Help menu. Usenet servers tend to put version numbers in the initial greeting message you get when you first connect. > Is it a \r > problem? I doubt it, but it could be related to that. If you are doing this on a telnet client, it will deal with sending CR LF when you hit enter so you shouldn't have to worry about that. And if the same technique is working on other servers, it should work on all servers. > I have tried to read the rfc and tried putting > \r after every line of message text ie crlf but there > is no success. ie have tried a bunch of possibilities > with this one server w/o success. Maybe you just didn't wait long enough? The server might be slow because it's sending to a posting server to do filtering and the posting server might just be overloaded so it takes a long time to respond? This is just a guess. But it sounds like you are doing things correctly. If you use just about any telnet client and type commands to the server manually, you should be able to post, and the server should respond failry quickly after you type the closing dot. If it didn't like the post for some reason, you should get an error response. If you don't have permission to post, you should still get an error response fairly qucikly. You could try asking the people that run the server. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads