Thread View: news.software.nntp
2 messages
2 total messages
Started by Julien ÉLIE
Fri, 16 Oct 2009 18:56
Mandatory HEAD and STAT commands in transit mode
Author: Julien ÉLIE
Date: Fri, 16 Oct 2009 18:56
Date: Fri, 16 Oct 2009 18:56
34 lines
2155 bytes
2155 bytes
Hi, On a mode-switching news server, what should be the response codes to HEAD and STAT when called as-is or with an article number? These commands are mandatory and I do not know well what should be returned by a feeder (innd). * "401 MODE-READER" because such commands would work after MODE READER and the selection of a newsgroup? * "412" because no newsgroup has been selected yet? * "501" for "HEAD 12" because it is not a valid message-ID (but it sounds strange to return 501 to "HEAD" without an argument...)? * "503" because we only "handle a subset of legitimate cases"? * other code? My guess would be to use 412 but I prefer to ask for your opinion. The weird thing with 412 is that we cannot select a newsgroup anyway! HEAD 12 412 Message-ID needed in transit mode -- Julien ÉLIE « L'art de la médecine consiste à distraire le malade pendant que la nature le guérit. » (Voltaire)
Re: Mandatory HEAD and STAT commands in transit mode
Author: Julien ÉLIE
Date: Wed, 21 Oct 2009 19:28
Date: Wed, 21 Oct 2009 19:28
28 lines
2233 bytes
2233 bytes
Hi, > On a mode-switching news server, what should be the response codes > to HEAD and STAT when called as-is or with an article number? [...] > My guess would be to use 412 but I prefer to ask for your opinion. > The weird thing with 412 is that we cannot select a newsgroup anyway! > > HEAD 12 > 412 Message-ID needed in transit mode I have just found out the answer in RFC 3977, section 3.4. It is 412: Note: some commands have cases that require other commands to be used first. If the former command is implemented but the latter is not, the former MUST still generate the relevant specific response code. For example, if ARTICLE (Section 6.2.1) is implemented but GROUP (Section 6.1.1) is not, the correct response to "ARTICLE 1234" remains 412. Sorry for the disturbance! -- Julien ÉLIE « Un sourire coûte moins cher que l'électricité mais donne autant de lumière. » (Abbé Pierre)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads