Article View: news.software.nntp
Article #44451[NNTP Draft] 7. The GREETING Step (and MODE READER)
From: Andrew Gierth
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
161 lines
6332 bytes
6332 bytes
[This is one of a series of extracts from draft-ietf-nntpext-base-09.txt
which is available in full from the usual Internet-Draft archives.]
7. The GREETING Step
7.1 Initial Connection
There is no keyword presented by the client upon initial
connection to the server. The server MUST present an
appropriate response code as a greeting to the client. This
response informs the client about what steps the client should
take to reach the news exchange step.
The server MUST present a 200 greeting code if the client is
authorized to post articles though the use of the POST keyword
on this server.
The server MUST present a 201 greeting code if the client is
not authorized to post articles using the POST keyword.
The server MUST present a 502 greeting code if the client is
not permitted under any circumstances to interact with the
server. The server should immediately close the connection
with the client after presenting this code.
In all other cases, the server MUST present a 400 greeting
code.
7.1.1 Initial Connection Example
Example of a normal connection from an authorized client
[C] Initial TCP connection completed
Barber [Page 7]
INTERNET DRAFT November 1999
[S] 200 NNTP Service Ready, posting permitted
Client can send commands at this point. In this example, the
client jumps directly to the conclusion step (See section
10.1).
[C] QUIT
[S] 205 NNTP Service exits normally
Example of a normal connection from an unauthorized client
[C] Initial TCP connection completed
[S] 502 NNTP Service Unavailable
At this point, the server closes the TCP connection.
Example of a normal connection from an authorized client that
is not permitted to post
[C] Initial TCP connection completed
[S] 201 NNTP Service Ready, posting prohibited
Client can send commands at this point. In this example, the
client jumps directly to the conclusion step (See section
10.1).
[C] QUIT
[S] 205 NNTP Service exits normally
Example of a connection from any client where the server is
unable to provide service
[C] Initial TCP connection completed
[S] 400 NNTP Service temporarily unavailable
At this point, the server closes the TCP connection.
7.1.2 MODE READER
MODE READER
Barber [Page 8]
INTERNET DRAFT November 1999
MODE READER MAY be used by the client to indicate to the
server that it is a news reading client. This command may be
entered at any time. The server must present a greeting code
(as described in section 7.1.2.1) appropriate to the server's
ability to provide service to this client in this mode.
7.1.2.1 Responses
200 Hello, you can post
201 Hello, you can't post
400 Service temporarily unavailable
502 Service unavailable
7.1.2.2 MODE READER Examples
Example of use of the MODE READER command by an authorized
client
[C] MODE READER
[S] 200 NNTP Service Ready, posting permitted
Client can send commands at this point. In this example, the
client jumps directly to the conclusion step (See section
10.1).
[C] QUIT
[S] 205 NNTP Service exits normally
Example of use of MODE READER by a client not authorized to
receive service from the server as a news reader
[C] MODE READER
[S] 502 NNTP Service Unavailable
At this point, the server closes the TCP connection.
Example of a normal connection from an authorized client that
is not permitted to post
[C] MODE READER
[S] 201 NNTP Service Ready, posting prohibited
Barber [Page 9]
INTERNET DRAFT November 1999
Client can send commands at this point. In this example, the
client jumps directly to the conclusion step (See section
10.1).
[C] QUIT
[S] 205 NNTP Service exits normally
Example of a connection from any client where the server is
unable to provide news reader service
[C] MODE READER
[S] 400 NNTP Service temporarily unavailable
At this point, the server closes the TCP connection.
--
Andrew.
Technical Details
Message-ID:
<87putjd35j.fsf@erlenstar.demon.co.uk>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-mailShow Full Headers
Complete Article Headers
Message-ID: <87putjd35j.fsf@erlenstar.demon.co.uk> Subject: [NNTP Draft] 7. The GREETING Step (and MODE READER) Date: Sat, 26 Feb 2000 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> 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: 590399661 X-Mayan-Date: Long count = 12.19.6.17.16; tzolkin = 13 Cib; haab = 4 Kayab X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha