🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79928

Initial greeting on mode-switching servers

#79928
From: Julien ÉLIE
Date: Wed, 24 Dec 2008 11:28
33 lines
2551 bytes
Hi,

According to RFC 3977, section 5.1.2, for the initial greeting:

   If the server will accept further commands from the client including
   POST, the server MUST present a 200 greeting code.  If the server
   will accept further commands from the client, but the client is not
   authorized to post articles using the POST command, the server MUST
   present a 201 greeting code.

According to RFC 3977, section 5.3.2, for the response to MODE READER:

   If the server is mode-switching, it switches from is transit mode to
   its reader mode, indicating this by changing the capability list
   accordingly.  It MUST then return a 200 or 201 response with the same
   meaning as for the initial greeting (as described in Section 5.1.1).
   Note that the response need not be the same as that presented during
   the initial greeting.


I understand that for a mode-switching server, we can receive 200 at the
initial greeting, and 201 when switching to the reader mode.
Is it right?  Because section 5.1.2 states that the server MUST present
a 201 greeting code if POST is not allowed, be it mode-switching or not.

Therefore, during the same connection, we can receive both 200 and 201 (?).

-- 
Julien ÉLIE

« Pourquoi les programmeurs confondent-ils Halloween et Noël ?
  Parce que OCT 31 == DEC 25. » 
Technical Details
Message-ID: <git6do$f2f$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <git6do$f2f$1@news.trigofacile.com>
Subject: Initial greeting on mode-switching servers
Date: Wed, 24 Dec 2008 12:28:44 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 33
NNTP-Posting-Host: amontpellier-152-1-46-104.w81-251.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="ISO-8859-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1230118137 15439 81.251.63.104 (24 Dec 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Wed, 24 Dec 2008 11:28:57 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049