Article View: news.software.nntp
Article #81168Re: Implementation question
From: Julien ÉLIE
Date: Sun, 31 May 2009 21:07
Date: Sun, 31 May 2009 21:07
60 lines
3728 bytes
3728 bytes
Hi Antti-Juhani,
>> If a user can NEVER post, EVEN AFTER AN AUTHENTICATION, then it is 201.
>> 200 is for a user who can post, possibly after having authenticated.
>
> Can you point me to chapter and verse on that? I've been wondering about that recently.
Yep. That's a tricky part in RFC 3977.
The note is not very explicit (but intents to mean that if 201 is sent
to a client, it can wrongly believe that he will never be able to post
and, therefore, may not offer its users to post -- that is why 200
is to be sent if posting may be allowed later).
And it is shown in one of the following examples. I admit one should
be very attentive to RFC 3977 so as to understand 200/201!
(I also understood it the wrong way, until Russ explained it to me!)
5.1. Initial Connection
5.1.2. Description
There is no command 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
whether service is available and whether the client is permitted to
post.
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.
Note: the distinction between the 200 and 201 response codes has
turned out in practice to be insufficient; for example, some servers
do not allow posting until the client has authenticated, while other
clients assume that a 201 response means that posting will never be
possible even after authentication. Therefore, clients SHOULD use
the CAPABILITIES command (Section 5.2) rather than rely on this
response.
5.3.3. Examples
[C] MODE READER
[S] 200 Reader mode, posting permitted
[C] CAPABILITIES
[S] 101 Capability list:
[S] VERSION 2
[S] READER
[S] NEWNEWS
[S] LIST ACTIVE NEWSGROUPS
[S] STARTTLS
[S] .
--
Julien ÉLIE
« Ad iura renunciata, non datur regressus. »
Technical Details
Message-ID:
<gvuri7$snp$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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mailReferences:
<b12af6-523.ln1@mail.viste-family.net> <gvtsdb$a4$1@news.trigofacile.com> <mjraf6-sp4.ln1@mail.viste-family.net> <gvugac$i8e$1@news.trigofacile.com> <78g8ksF1lv1mqU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <gvuri7$snp$1@news.trigofacile.com> Subject: Re: Implementation question Date: Sun, 31 May 2009 23:07:18 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <b12af6-523.ln1@mail.viste-family.net> <gvtsdb$a4$1@news.trigofacile.com> <mjraf6-sp4.ln1@mail.viste-family.net> <gvugac$i8e$1@news.trigofacile.com> <78g8ksF1lv1mqU1@mid.individual.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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 60 NNTP-Posting-Host: aaubervilliers-151-1-45-218.w83-114.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1243804039 29433 83.114.135.218 (31 May 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sun, 31 May 2009 21:07:19 +0000 (UTC) In-Reply-To: <78g8ksF1lv1mqU1@mid.individual.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049