Re: [squid-users] Incorrect HTTP GET request from squid

From: Frank Eibisch <feibisch@dont-contact.us>
Date: Tue, 16 Jul 2002 10:19:35 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 16 July 2002 09:12, Eric Lawson wrote:

> the cache server. Why doesn't the cache server just send the same GET
> request (GET http://www.smh.com.au/ HTTP/1.0) that my browser is sending?
> Instead of GET / HTTP/1.0

Because it does not have to. If you try to fetch http://www.smh.com.au you
first get the IP-address of www.smh.com.au, which is 203.26.51.42 for me.
Then you connect to that server at port 80. The rest of the request is
getting a local file from the server. And because you want to fetch the
"DocumentRoot" of that server, the correct line is "GET /". Additional the
Host-Header is to distinguish several virtual hosts on the same ip. So squid
does behave correct here.

Your problem is strange, indeed. Have you turned on accelerator mode or
redirection? What about Hendriks question about transparent proxy?

Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9M9ceckz+aqW7MtQRAv8NAKCAZFsrTvp4OMFF2P2MCPATUhLyQQCeLFcw
crqAm/uybLAbR9zG5S1+N38=
=h0L4
-----END PGP SIGNATURE-----
Received on Tue Jul 16 2002 - 02:09:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:16 MST