🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66904

Re: New NNTP draft -- Section 5

#66904
From: Dirk Nimmich
Date: Tue, 21 Oct 2003 12:41
25 lines
2841 bytes
Russ Allbery wrote:
> Graham Drabble <graham.drabble@lineone.net> writes:
>> I'm surprised at that. Either /^2/ or substr(code,0,1) == 2 (or the
>> equivelent syntax for other languages) would seem to cover it (I assume
>> most people treat it as a text string of numbers rather than as numeric
>> data, if not then a simple code >=200 && <300 is standards compliant).
> 
> You have to add a separate code path to check for that, and then you have
> to think about whether to treat it like 200 or 201.

Given the explanations of both of you, there is no real difference
in treating 200 or 201. If the client receives a 200 it always has
to find out using the POST command whether it is allowed to post or
not (Russ' way). If it receives a 201 and has to recheck after
authentication (Graham's observation), it can also find out the same
way by just doing POST. So the easiest way (and code path) is to
ignore the response code altogether unless it doesn't begin with 2.

Tin, BTW, looks at the greeting response code and turns posting off
when receiving a 201. But it corrects this after authentication and
looking at the response code of a following MODE READER. So if your
server sends 201 initially and only asks for authentication after
issueing a POST command, you have to authenticate in advance because
otherwise tin doesn't enable the keys to post.
Technical Details
Message-ID: <bn39h2$ksa$02$1@news.t-online.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.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <87fzhryxdc.fsf@windlord.stanford.edu> <871xta1bbb.fsf@windlord.stanford.edu> <874qy3hnhl.fsf_-_@windlord.stanford.edu> <Xns941AB877861BAgrahamdrabblelineone@ID-77355.user.dfncis.de> <87ekx7g6tb.fsf@windlord.stanford.edu> <Xns941AE6F6CF380grahamdrabblelineone@ID-77355.user.dfncis.de> <87ptgredpn.fsf@windlord.stanford.edu> <Xns941B5A6B14E1grahamdrabblelineone@ID-77355.user.dfncis.de> <87d6creadp.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <bn39h2$ksa$02$1@news.t-online.com>
Subject: Re: New NNTP draft -- Section 5
Date: Tue, 21 Oct 2003 14:41:06 +0200
From: Dirk Nimmich <nimmich@muenster.de>
References: <87fzhryxdc.fsf@windlord.stanford.edu> <871xta1bbb.fsf@windlord.stanford.edu> <874qy3hnhl.fsf_-_@windlord.stanford.edu> <Xns941AB877861BAgrahamdrabblelineone@ID-77355.user.dfncis.de> <87ekx7g6tb.fsf@windlord.stanford.edu> <Xns941AE6F6CF380grahamdrabblelineone@ID-77355.user.dfncis.de> <87ptgredpn.fsf@windlord.stanford.edu> <Xns941B5A6B14E1grahamdrabblelineone@ID-77355.user.dfncis.de> <87d6creadp.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.nntp
Organization: T-Online
Lines: 25
Sender: Dirk Nimmich <dirk@roxel.fqdn.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1066740066 02 21386 -59yVvOVSVAnKH 031021 12:41:06
X-Complaints-To: usenet-abuse@t-online.de
X-ID: Xu8BdwZlwelRo1Y-ZOw0BCCuUQg4J3CCJzYYnxurarMYyqH4CCaloV