httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Khoa Nguyen <>
Subject [users@httpd] Host header field: How is it enforced or not at all?
Date Thu, 18 Aug 2005 19:23:17 GMT

I don't quite understand the use of the Host: header field in HTTP
1.1request. For example, I wrote a simple script to connect to <> on port 80. After the connection, I 
send the following GET request:

GET / HTTP/1.1
Host: <>

The web server doesn't seem to care what I put in the Host field and always 
returns the google home page. Is this behaviour acceptable? Why a HTTP
1.1web server insists on the presence of a Host field but doesn't seem
to do
any kind of checking on it?


View raw message