httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@wired.com>
Subject error-responses bugs
Date Tue, 04 Apr 1995 03:38:46 GMT

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/


Mime
View raw message