You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Behlendorf <br...@wired.com> on 1995/04/04 05:38:46 UTC
error-responses bugs
It looks like the error response mechanism stuff doesn't deal gracefully
with a complete lack of Accept: headers if the requested object doesn't
exist.
For example, with "ErrorDocument 404 /404.html" in srm.conf:
totally 40% telnet hyperreal.com 80
Trying 204.62.130.120...
Connected to hyperreal.com.
Escape character is '^]'.
GET /sdaf HTTP/1.0
Connection closed by foreign host.
error log reports for this transaction:
[Mon Apr 3 19:37:59 1995] httpd: access to /export/pub/sdaf failed
for totally.wired.com, reason: File not found; no multi in this directory
...but no 404 response. However, adding a simple "Accept: text/html" to
the request gets the right response.
This is with 0.4 - I tried Rob's enhancements and still got this error.
I'm pretty sure just the GET line is a perfectly valid HTTP request, much
to Roy's chagrin I'm sure :) This is useful in debugging and such.
Brian
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@hotwired.com brian@hyperreal.com http://www.hotwired.com/Staff/brian/