httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: Response codes returned to clients.
Date Thu, 28 Sep 2000 21:48:55 GMT
On Thu, 28 Sep 2000, Harrie Hazewinkel wrote:

> HI all,
> 
> Am I correct that Apache returns a wrong message back
> to the client when a not supported method is recieved??
> I beleive the server should return the response-line and 
> any headers followed by an emtpy line
> as defined in the HTTP-standard.

If you don't specify a HTTP version, Apache assumes HTTP/0.9, which is
legitimate.  HTTP/0.9 responses have no header, so Apache doesn't 
send it.

> 
> See the following output returned by Apache 1.3.12.
> -----------------------------------------------------
> bash-2.03$ telnet localhost 8080
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> HARRIE
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>501 Method Not Implemented</TITLE>
> </HEAD><BODY>
> <H1>Method Not Implemented</H1>
> HARRIE to /index.html not supported.<P>
> Invalid method in request HARRIE<P>
> <HR>
> <ADDRESS>Apache/1.3.12 Server at localhost Port 80</ADDRESS>
> </BODY></HTML>
> Connection closed by foreign host.
> bash-2.03$ telnet localhost 8080
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> HEAD / 
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>400 Bad Request</TITLE>
> </HEAD><BODY>
> <H1>Bad Request</H1>
> Your browser sent a request that this server could not understand.<P>
> client sent invalid HTTP/0.9 request: HEAD /<P>
> <HR>
> <ADDRESS>Apache/1.3.12 Server at pico.sfo.covalent.net Port
> 8080</ADDRESS>
> </BODY></HTML>
> Connection closed by foreign host.
> bash-2.03$ 
> 
> Harrie 
> 0- Harrie Hazewinkel ---------------------------------------0
>  mailto:harrie@covalent.net            phone:+1-415-536-5221
> 0-----------------------------------------------------------0
> 


Mime
View raw message