Re: [squid-users] Frustrating "Invalid Request" Reply

From: Ãœmit Kablan <umitkablan_at_gmail.com>
Date: Tue, 1 Mar 2011 17:56:02 +0200

Hi,

2011/2/28 Amos Jeffries <squid3_at_treenet.co.nz>:
> On Mon, 28 Feb 2011 16:51:54 +0200, Ãœmit Kablan wrote:
>>
>> Hi, Sorry for the late reply,
>>
> <snip>
>>
>> Enter the full phrase and hit enter: [192.168.1.10 -> 192.168.1.120]
>>
>> GET
>>
>>
>> /search?hl=tr&source=hp&biw=1280&bih=897&q=ertex&aq=2&aqi=g10&aql=&oq=ert&fp=3405898bc8895081&tch=1&ech=1&psi=_LBrTd6iFM-o8QPm5P3tDA12989033090755&safe=active
>> HTTP/1.1
>> Host: www.google.com.tr
>> Proxy-Connection: keep-alive
>> Referer: http://www.google.com.tr/
>> Accept: */*
>> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
>> AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224
>> Safari/534.10
>> Accept-Encoding: gzip,deflate,sdch
>> Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4
>> Accept-Charset: ISO-8859-9,utf-8;q=0.7,*;q=0.3
>> Cookie:
>>
>>
>> NID=44=WDrVJT3IHROI8LLhYljiGzpNonvug9envnNeEoo6qdVxw1B1eHwarlfgZgODzoTsj7i7QGza5luXEqgQuFx7eWduz3Pcc-8IFrLp8tTyIaJC9VgyXEyQAv0qBQD3Dxm9;
>>
>>
>> PREF=ID=e5ce72ddfd5e542a:U=0163fee991eaa35b:FF=0:TM=1298386459:LM=1298903279:S=6Sakp_hgUHZXMW1W
>>
>> [192.168.1.120 -> 192.168.1.10]
>>
>> HTTP/1.0 400 Bad Request
>> Server: squid/2.7.STABLE8
>> Date: Mon, 28 Feb 2011 14:30:43 GMT
>> Content-Type: text/html
>> Content-Length: 2044
>> X-Squid-Error: ERR_INVALID_REQ 0
>> X-Cache: MISS from kiemserver
>> X-Cache-Lookup: NONE from kiemserver:3128
>> Via: 1.0 kiemserver:3128 (squid/2.7.STABLE8)
>> Connection: close
>>
>> Last is the weird part. It crops the full url and it thinks it is
>> talking directly to the origin as you already said. Or I am skipping
>> something obvious.
>
>
> I'm still convinced this is some form of configuration mistake somewhere.
> Lets step through this piece by piece in detail and see if anything appears.
>
Hard to stay sane but OK :-)

> Which browser are you using to test with?
>  What proxy settings are entered into its control panel?

I tried it with Mozilla Firefox 3.6.13 by writing 192.168.1.10 port
3128 to the Prefereces > Network > Configuration. Configured Internet
Explorer by Tools > Internet Options > Connections > Local Network
Configuration and typing proxy IP and PORT. Google Chrome acquires the
options from system so it is the same as IE.

>
> What does the client hosts file contain?
> What does the client resolv.conf or equivalent Windows network connection
> settings contain as gateway router, domain, and DNS servers?

Client is windows configured to use a static IP 192.168.1.120 with
255.255.255.0 subnet mask and 192.168.1.1 gateway (and dns). Hosts
equivalent is name address mapping I assume, which I found nothing
about (except 127.0.0.1 <-> localhost I guess)

I sometimes think that the javascript makes an explicit request which
leads to that misinterpretation by the browsers. I have no strong
clues about though. And I also want to ask if we can make some
workaroud from proxy layer without involving browsers. As I previously
said: Can Squid Proxy fix such bad requests by concaneting other
fields from HTTP request to build the correct URL?

>
> Amos
>

-- 
Ãœmit
Received on Tue Mar 01 2011 - 15:56:09 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 02 2011 - 12:00:01 MST