Thread View: news.software.nntp
11 messages
11 total messages
Started by Juergen Helbing
Wed, 07 May 2003 08:18
Informative: another protocol (http) now ruined
Author: Juergen Helbing
Date: Wed, 07 May 2003 08:18
Date: Wed, 07 May 2003 08:18
82 lines
3429 bytes
3429 bytes
Because it also is a problem for other protocols (hopefully no longer for NNTP with the new RFC) I want to tell you a short joke what happened today when I browsed to a site on the web: There must be wrong configuration on that host. So the 'root' page (index.html....) was not found. Usually a webserver should then issue something as "403 page not found". But in this case it did send me a LARGE graphics with the text of the error-message. So it did _send_ a page - rather than sending an error code for the http protocol. The reason: Well - Microsoft has ruined meanwhile the world wide web by trapping into the http-protocol error reports (as well as the DNS error reports) with their browser: They are hiding the true problem from the user. Instead they are displaying any text they believe would be appropriate for the situation...... The consequence: It seems that webmasters are now sick of unspecified problem reports and are now sending out there own "problem-report" in form of web-pages..... ROTFL ! Why am I posting this anecdote to n.s.nntp ? As a writer of news-software I'm often having problems with nice error-response codes - which often do not reflect the true status of the host. Especially the "400" and "502" codes are often used to limit the amount of connections per user - or in total. It is pretty difficult to write a nrews-reader with auto-connect (and auto-retry) if these codes are not properly used. And AFAIR I saw also "host-specific error codes" which could not be interpreted by my reader. In all cases the following text was a good explanantion (for a human reader) - but for automated retrieval tools (and EVERY newsreader is anyhow automatic) we programmers need urgently reliably specified (and used) response codes.... I also saw already messages like this: <Headers> <Partial body> [Article expired] (Perhaps the article did expire during it was sent to the user ;-) (Such problem also occur if a news-proxy gets a delivery problem with its source...) (NNTP has no support for problems which occur during an article is posted or retrieved.... but to close the connection) This is not a request for urgent action. I just want to ask the elders honestly to keep an eye on the response codes (and to check perhaps the needs of commercial NSPs and free hosts with limited amounts of ressources) for _proper_ response codes. It would be really ugly if we programmers for NNTP would have to deal with the "text strings" as well as the WWW will now have to (with JPEG-images as error-responses - ROTFL!) So long -- Juergen
Re: Informative: another protocol (http) now ruined
Author: J.B. Moreno
Date: Wed, 07 May 2003 17:45
Date: Wed, 07 May 2003 17:45
26 lines
1858 bytes
1858 bytes
In article <5118a.753200@archiver.winews.net>, Juergen Helbing <archiver@i3w.com> wrote: > Because it also is a problem for other protocols > (hopefully no longer for NNTP with the new RFC) > I want to tell you a short joke what happened today > when I browsed to a site on the web: > > > There must be wrong configuration on that host. > So the 'root' page (index.html....) was not found. > > Usually a webserver should then issue something > as "403 page not found". > But in this case it did send me a LARGE graphics > with the text of the error-message. So it did _send_ > a page - rather than sending an error code for the > http protocol. It's 404 not 403, and it's always been possible to do both -- and in fact customizing the error page has a fairly long history, and nothing to do with MS. -- J.B. Moreno
Re: Informative: another protocol (http) now ruined
Author: Juergen Helbing
Date: Thu, 08 May 2003 05:34
Date: Thu, 08 May 2003 05:34
41 lines
1924 bytes
1924 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote: >> Usually a webserver should then issue something >> as "403 page not found". >It's 404 not 403, I'm not a http specialist but here the text from the site: >Fehler 403: Keine Index-Datei >Es wurde keine Index-Datei (default.htm, index.html, default.asp) >in diesem Verzeichnis gefunden. Aus Sicherheitsgr�nden wurde >das Durchsuchen von Verzeichnissen deaktiviert. The site is: http://www.jahnke.de/ ( I realized meanwhile that the graphics is a GIF file).... >and it's always been possible to do both -- and in >fact customizing the error page has a fairly long history, >and nothing to do with MS. Thanks for the information. So it seems that the return codes for http-requests are nothing more than 'nice tips' :-) Your doubt in the correctness of '404' or '403' made me curious. So I digged a little bit deeper and looked at the http-protocol message bytes. That page delivers: HTTP/1.1 403 Access Forbidden Server: Microsoft-IIS/5.0 .... I hope we'll never get such a mess for NNTP. CU -- Juergen
Re: Informative: another protocol (http) now ruined
Author: Rene
Date: Thu, 08 May 2003 11:23
Date: Thu, 08 May 2003 11:23
45 lines
2803 bytes
2803 bytes
archiver@i3w.com (Juergen Helbing) wrote: > The site is: http://www.jahnke.de/ > ( I realized meanwhile that the graphics is a GIF file).... RFC 2616, section 10.4 & 10.4.4: 10.4 Client Error 4xx The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method. User agents SHOULD display any included entity to the user. If the client is sending data, a server implementation using TCP SHOULD be careful to ensure that the client acknowledges receipt of the packet(s) containing the response, before the server closes the input connection. If the client continues sending data to the server after the close, the server's TCP stack will send a reset packet to the client, which may erase the client's unacknowledged input buffers before they can be read and interpreted by the HTTP application. 10.4.4 403 Forbidden The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead. The server is answering perfectly valid and within specs and RFC. It even performs according to 2 "shoulds" in the RFC. CU Rene -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: Informative: another protocol (http) now ruined
Author: Curt Welch
Date: Thu, 08 May 2003 19:01
Date: Thu, 08 May 2003 19:01
49 lines
2984 bytes
2984 bytes
archiver@i3w.com (Juergen Helbing) wrote: > "J.B. Moreno" <planb@newsreaders.com> wrote: > > >> Usually a webserver should then issue something > >> as "403 page not found". > > >It's 404 not 403, > > I'm not a http specialist but here the text from the site: > > >Fehler 403: Keine Index-Datei > >Es wurde keine Index-Datei (default.htm, index.html, default.asp) > >in diesem Verzeichnis gefunden. Aus Sicherheitsgr�nden wurde > >das Durchsuchen von Verzeichnissen deaktiviert. > > The site is: http://www.jahnke.de/ > ( I realized meanwhile that the graphics is a GIF file).... > > >and it's always been possible to do both -- and in > >fact customizing the error page has a fairly long history, > >and nothing to do with MS. > > Thanks for the information. So it seems that the return codes > for http-requests are nothing more than 'nice tips' :-) I don't understand your confusion here. The site is doing exactly what it should be doing. It's not a "nice tip" it's returning. > Your doubt in the correctness of '404' or '403' made me curious. > So I digged a little bit deeper and looked at the http-protocol > message bytes. That page delivers: > > HTTP/1.1 403 Access Forbidden > Server: Microsoft-IIS/5.0 > .... > > I hope we'll never get such a mess for NNTP. It's return 403 because it has been configured not to allow us to access the site. That's exactly what it should be returning. It's not returning a gif as you said it was. It's returning a very normal HTTP error page which can say anything you want it to say. All web servers do this. They happened to create an HTTP error page which included 2 gifs to make it look nicer. All well within the spec. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Informative: another protocol (http) now ruined
Author: Jeremy
Date: Thu, 08 May 2003 19:20
Date: Thu, 08 May 2003 19:20
15 lines
1290 bytes
1290 bytes
Juergen Helbing <archiver@i3w.com> wrote: > Usually a webserver should then issue something > as "403 page not found". > But in this case it did send me a LARGE graphics > with the text of the error-message. So it did _send_ > a page - rather than sending an error code for the > http protocol. An HTTP error response includes a body, which can be anything the server operator wants. The server is doing absolutely nothing wrong here. -- Jeremy | jeremy@exit109.com
Re: Informative: another protocol (http) now ruined
Author: Juergen Helbing
Date: Fri, 09 May 2003 05:17
Date: Fri, 09 May 2003 05:17
38 lines
1780 bytes
1780 bytes
curt@kcwc.com (Curt Welch) wrote: >It's return 403 because it has been configured not to allow us to access >the site. That's exactly what it should be returning. > Fehler 403: Keine Index-Datei In English this would be: Error 403 - index file not found For me the "index file not found" text is simply wrong when 403 should return the text "no access"... I cannot understand why this is exactly the correct answer and within any spec..... For me this would be similar to: NNTP-Command: group alt.not-existing NNTP-Response: 502 group does not exist on this server or perhaps: NNTP-Command: article <abcde@site.com> NNTP-Response: 502 article not found 502 would be correct because there is no "permission" to access the group or article. But newsreaders would be really confused. Fortunately NNTP does not permit do send an article with an explanation ;-) Thanks for the feedback. -- Juergen
Re: Informative: another protocol (http) now ruined
Author: Juergen Helbing
Date: Fri, 09 May 2003 05:19
Date: Fri, 09 May 2003 05:19
15 lines
1143 bytes
1143 bytes
Jeremy <jeremy@exit109.com> wrote: >An HTTP error response includes a body, which can be anything the server >operator wants. The server is doing absolutely nothing wrong here. Yes, it seems that the HHTP error code could be correct. But I was totally confused by the operators message. Something new to learn all the time. Thanks for the feedback. -- Juergen
Re: Informative: another protocol (http) now ruined
Author: Jeffrey M. Vinocur
Date: Fri, 09 May 2003 07:37
Date: Fri, 09 May 2003 07:37
29 lines
2144 bytes
2144 bytes
In article <34177.953208@archiver.winews.net>, Juergen Helbing <archiver@i3w.com> wrote: >curt@kcwc.com (Curt Welch) wrote: > >>It's return 403 because it has been configured not to allow us to access >>the site. That's exactly what it should be returning. > >> Fehler 403: Keine Index-Datei > >In English this would be: Error 403 - index file not found > >For me the "index file not found" text is simply wrong >when 403 should return the text "no access"... >I cannot understand why this is exactly the correct answer >and within any spec..... The story is probably something like this: if an index file is found, display it. If no index file is found, generate one on the fly. However, if the server is not permitted to generate an index, then it might say 403 because you don't have enough access to see the list of files. But to give you the text "no access" is redundant, since you know that from the code; it chooses to give you additional information which may be relevant. -- Jeffrey M. Vinocur jeff@litech.org
Re: Informative: another protocol (http) now ruined
Author: Jeremy
Date: Fri, 09 May 2003 19:42
Date: Fri, 09 May 2003 19:42
10 lines
1132 bytes
1132 bytes
Juergen Helbing <archiver@i3w.com> wrote: > Yes, it seems that the HHTP error code could be correct. > But I was totally confused by the operators message. Yep, as usual, the problem isn't technical, it's human. :) -- Jeremy | jeremy@exit109.com
Re: Informative: another protocol (http) now ruined
Author: Jeremy
Date: Fri, 09 May 2003 19:46
Date: Fri, 09 May 2003 19:46
23 lines
1787 bytes
1787 bytes
Juergen Helbing <archiver@i3w.com> wrote: >> Fehler 403: Keine Index-Datei > > In English this would be: Error 403 - index file not found > > For me the "index file not found" text is simply wrong > when 403 should return the text "no access"... > I cannot understand why this is exactly the correct answer > and within any spec..... When the webserver doesn't find an index file, it wants to generate an index on the fly. In order to do that, it needs to scan the directory. This only works if the webserver has permission to list the directory, and the server is configured to allow *you* to scan the directory. Thus, the reason you're not getting an index is, indeed, a permission problem -- either Unix file permissions, or server access configuration. The error is unclear, but correct. Must be Unix. :) -- Jeremy | jeremy@exit109.com
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