Running 4.4, installed squid from ports (2.7.STABLE3).  From another
box, ran the following:

$ squidclient -h urd.spidernet.to -p 3128 http://www.youtube.com
HTTP/1.0 400 Bad Request
Date: Thu, 26 Mar 2009 19:53:00 GMT
Server: Apache
X-YouTube-MID: 
WkFSZzctYUFHdmpjSDF1WjZ5RFNrSng3NklNV0RhVHQ4UG55cEw3ek9xOVphWFhBb01YNUFn
Expires: Tue, 27 Apr 1971 19:44:06 EST
X-Content-Type-Options: nosniff
Cache-Control: no-cache
Content-Type: text/plain
X-Cache: MISS from urd.spidernet.to
Via: 1.1 urd.spidernet.to:3128 (squid/2.7.STABLE3)
Connection: close

$ squidclient -h urd.spidernet.to -p 3128 -H 'User-Agent: bah\n'
http://www.youtube.com

and it works.

Added the following line (and stopped, and started squid again):

header_replace User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3

$ squidclient -h urd.spidernet.to -p 3128 http://www.youtube.com

still fails.

Anyone seen this?  I'll go do some more troubleshooting tonight, but
it appears that this version of squid is eating the User-Agent string.
 This is from a clean install from /usr/ports/www/squid - "make
install; sudo -u _squid /usr/local/sbin/squid -z; sudo -u _squid
/usr/local/sbin/squid"

Thanks!!!

-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
"This officer's men seem to follow him merely out of idle curiosity."
-- Sandhurst officer cadet evaluation.
"Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted."  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=j1G-3laJJP0&feature=related

Reply via email to