Peter1968 wrote:
mike wrote:
regards:
Does each HTTP Request have "Host:" header?
Yes.
You're asking in the wrong place, though, as I'm sure you'll be told 14
times by 12 other people. :)
http://www.w3.org/Protocols/#Specs for some serious study on the subject.
Further to what I wrote; taken from RFC 2616:
The most common form of Request-URI is that used to identify a
resource on an origin server or gateway. In this case the absolute
path of the URI MUST be transmitted (see section 3.2.1, abs_path) as
the Request-URI, and the network location of the URI (authority) MUST
be transmitted in a Host header field. For example, a client wishing
to retrieve the resource above directly from the origin server would
create a TCP connection to port 80 of the host "www.w3.org" and send
the lines:
GET /pub/WWW/TheProject.html HTTP/1.1
Host:
www.w3.org
followed by the remainder of the Request. Note that the absolute path
cannot be empty; if none is present in the original URI, it MUST be
given as "/" (the server root).
Hope that helps you out.