I've just hit a strange problem on a system using an old version of
squid (v2.4). No idea if the problem affects newer versions of squid as
well; I've got no easy way to tell. (I don't have access to any versions
of MSIE to try)
(The system in question sits behind a firewall and is really just a
cheap access control system for outgoing traffic to the web, nothing
more, so there's no demand to upgrade the system)
The problem is a browser sending a user agent string of:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
When sent via squid the website is failing. If the browser is allowed to
connect directly then the website works (but I don't know exactly what
the browser is sending in that case)
Another computer, using the same squid but sending a user agent of
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
works fine.
Anyone seen anything similar?
The immediate solution has been to use firefox instead which also works.
tim@feynman:~$ telnet www.plumbcenter.co.uk 80
Trying 89.207.160.30...
Connected to www.plumbcenter.co.uk.
Escape character is '^]'.
GET /plumb/index.html HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
HTTP/1.1 400 Bad Request
Date: Wed, 27 Aug 2008 21:44:51 GMT
Server: Microsoft-IIS/6.0
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br/>
</p>
</body></html>
Connection closed by foreign host.
This works if you drop the "; SV1" from the user agent. Or even replace
"; SV1" with "; SV2" or replace "5.1" with "5.0" but leave the "; SV1"
bit!
Tim.
--
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.
http://www.woodall.me.uk/ http://www.locofungus.btinternet.co.uk/