Article View: news.software.nntp
Article #37532Re: nntp client - method question
From: Greg Andrews
Date: Tue, 18 May 1999 00:00
Date: Tue, 18 May 1999 00:00
57 lines
2837 bytes
2837 bytes
fjfevre@ibm.net (Fred J. LeFevre) writes: > >I guess I was fixating on the sentence in 2.4.2, "In addition, below is >listed a general set of response codes that may be received at any time.". > Are you paraphrasing the RFC's real wording? My copy of the RFC doesn't say that. Section 2.4.2 says: 2.4.2. Status Responses These are status reports from the server and indicate the response to the last command received from the client. Status response lines begin with a 3 digit numeric code which is sufficient to distinguish all responses. Some of these may herald the subsequent transmission of text. The section that talks about general responses is 2.4.3, which doesn't say they'll be received "at any time". It says they'll be received as the result of certain events: 2.4.3. General Responses The following is a list of general response codes that may be sent by the NNTP server. These are not specific to any one command, but may be returned as the result of a connection, a failure, or some unusual condition. > >Can a client make the assumption that the server will end textual >response via the single line containing only a period before sending >one of these section 2.4.3 General Responses such as '400 service >discontinued'? > No, the reverse of that. The one-line response with the 3-digit code and english description of the response will come first. The subsequent lines of multi-line responses will come after that first line. It's been a few years since I dug into the RFC deeply, but my recollection is that the response to any command will be a single line containing the 3-digit response code. If the code is a 3xx, 4xx, or 5xx code, that one line is all you'll get. If you get a 2xx code and the command produces a multi-line response, then you'll get the rest of the lines until the end line (.). -Greg -- ::::::::::::::::::: Greg Andrews gerg@netcom.com ::::::::::::::::::: Fortune Cookie: Nondeterminism means never having to say you are wrong. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Technical Details
Message-ID:
<gergFBxvKq.81t@netcom.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<37404133@news3.us.ibm.net> <7hpipj$igb$1@shell1.ncal.verio.com> <37409af9@news3.us.ibm.net>Show Full Headers
Complete Article Headers
Message-ID: <gergFBxvKq.81t@netcom.com> Subject: Re: nntp client - method question Date: Tue, 18 May 1999 00:00:00 +0000 From: gerg@netcom.com (Greg Andrews) References: <37404133@news3.us.ibm.net> <7hpipj$igb$1@shell1.ncal.verio.com> <37409af9@news3.us.ibm.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 479524098 Sender: gerg@netcom17.netcom.com Organization: WGASA.ORG: Long slow deep soft wet pings that last for three days Newsgroups: news.software.nntp