Transparent (redirecting) proxy with BaseHTTPServer
paul koelle
paul at subsignal.org
Thu Jan 27 18:49:36 EST 2005
Thanks, aurora ;),
aurora wrote:
> If you actually want the IP, resolve the host header would give you that.
I' m only interested in the hostname.
>
> The second form of HTTP request without the host part is for
> compatability of pre-HTTP/1.1 standard. All modern web browser should
> send the Host header.
How safe is the assumtion that the Host header will be there? Is it part
of the HTTP/1.1 spec? And does it mean all "pre 1.1" clients will fail?
Hmm, maybe I should look on the wire whats really happening...
thanks again
Paul
More information about the Python-list
mailing list