Re: Fw: Re: [squid-users] NONE/411 Length Required

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 18 Jun 2009 03:41:35 +1200

Bijayant Kumar wrote:
> Bijayant Kumar
>
>
> --- On Mon, 15/6/09, Bijayant Kumar <bijayant4u_at_yahoo.com> wrote:
>
>> From: Bijayant Kumar <bijayant4u_at_yahoo.com>
>> Subject: Re: [squid-users] NONE/411 Length Required
>> To: "squid users" <squid-users_at_squid-cache.org>
>> Date: Monday, 15 June, 2009, 6:48 PM
>>
>>
>> --- On Mon, 15/6/09, Amos Jeffries <squid3_at_treenet.co.nz>
>> wrote:
>>
>>> From: Amos Jeffries <squid3_at_treenet.co.nz>
>>> Subject: Re: [squid-users] NONE/411 Length Required
>>> To: "Bijayant Kumar" <bijayant4u_at_yahoo.com>
>>> Cc: "squid users" <squid-users_at_squid-cache.org>
>>> Date: Monday, 15 June, 2009, 6:06 PM
>>> Bijayant Kumar wrote:
>>>> Hello list,
>>>>
>>>> I have Squid version 3.0.STABLE 10 installed on
>> Gentoo
>>> linux box. All things are working fine, means caching
>>> proxying etc. There is a problem with some sites. When
>> I am
>>> accessing one of those sites, in access.log I am
>> getting
>>>> NONE/411 3692 POST http://wwww.justdial.com/autosuggest_category_query_main.php?
>>> - NONE/- text/html
>>>> And on the webpage I am getting whole error page
>> of
>>> squid. Actually its a search related page. In the
>> search
>>> criteria field as soon as I am typing after two words
>> I am
>>> getting this error. The website in a question is "http://justdial.com". But it works without the Squid.
>>>>
>>>> I tried to capture the http headers also which
>> are as
>>> below
>>>> http://wwww.justdial.com/autosuggest_category_query_main.php?city=Bangalore&search=Ka
>>>>
>>>>
>>>>
>>>> POST
>> /autosuggest_category_query_main.php?city=Bangalore&search=Ka
>>> HTTP/1.1
>>>> Host: wwww.justdial.com
>>>>
>>>> User-Agent: Mozilla/5.0 (X11; U; Linux i686;
>> en-US;
>>> rv:1.8.1.16) Gecko/20080807 Firefox/2.0.0.16
>>>> Accept:
>> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>>>> Accept-Language: en-us,en;q=0.7,hi;q=0.3
>>>>
>>>> Accept-Encoding: gzip,deflate
>>>>
>>>> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>>>>
>>>> Keep-Alive: 300
>>>>
>>>> Connection: keep-alive
>>>>
>>>> Referer: http://wwww.justdial.com/
>>>>
>>>> Cookie:
>> PHPSESSID=d1d12004187d4bf1f084a1252ec46cef;
>> __utma=79653650.2087995718.1245064656.1245064656.1245064656.1;
>>> __utmb=79653650; __utmc=79653650;
>>>
>> __utmz=79653650.1245064656.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);
>>> CITY=Bangalore
>>>> Pragma: no-cache
>>>>
>>>> Cache-Control: no-cache
>>>>
>>>>
>>>>
>>>> HTTP/1.x 411 Length Required
>>>>
>>>> Server: squid/3.0.STABLE10
>>>>
>>>> Mime-Version: 1.0
>>>>
>>>> Date: Mon, 15 Jun 2009 11:18:10 GMT
>>>>
>>>> Content-Type: text/html
>>>>
>>>> Content-Length: 3287
>>>>
>>>> Expires: Mon, 15 Jun 2009 11:18:10 GMT
>>>>
>>>> X-Squid-Error: ERR_INVALID_REQ 0
>>>>
>>>> X-Cache: MISS from bijayant.kavach.blr
>>>>
>>>> X-Cache-Lookup: NONE from
>> bijayant.kavach.blr:3128
>>>> Via: 1.0 bijayant.kavach.blr
>> (squid/3.0.STABLE10)
>>>> Proxy-Connection: close
>>>>
>>>> Please suggest me what could be the reason and
>> how to
>>> resolve this. Any help/pointer can be a very helpful
>> for me.
>>>> Bijayant Kumar
>>>>
>>>>
>>>> Get your new
>> Email
>>> address!
>>>> Grab the Email name you've always wanted before
>>> someone else does!
>>>> http://mail.promotions.yahoo.com/newdomains/aa/
>>>
>>> NONE - no upstream source.
>>> 411 - "Content-Length missing"
>>>
>>> HTTP requires a Content-Length: header on POST
>> requests.
> How to resolve this issue. Because the website is on internet and its working fine without the squid. When I am bypassing the proxy, I am not getting any type of error.
>
> Can't this website be accessed through the Squid?

 From Marks reply it looks like Squid might be able to handle these
weird empty POST requests if someone can find the patch.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE16
   Current Beta Squid 3.1.0.8
Received on Wed Jun 17 2009 - 15:41:41 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 17 2009 - 12:00:04 MDT