Re: [squid-users] Zero Sized Reply / Invalid response

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 20 Aug 2008 15:24:35 +1200

Pedro Mansito Pérez wrote:
>
> El 15/08/2008, a las 8:41, Amos Jeffries escribió:
>
>> Pedro Mansito Pérez wrote:
>>> Hello,
>>> Our Company is using Squid 2.6.STABLE14 on a Slackware 12.0 box. A
>>> few weeks ago we began to have errors accessing some web pages, but
>>> not all, on a supplier web site. If we do not use a proxy server we
>>> can access those web pages; we have tested it with Safari, Camino and
>>> Firefox on Mac OS X, and IE 6 and 7, and Firefox on Windows. On Squid
>>> 2.6 we get a Zero Sized Reply error; on a Squid 3.0.STABLE7 test box
>>> (also on Slackware 12.0) we have an Invalid Response Error. If, on
>>> Internet Explorer, we disable the use of HTTP/1.1 on proxy
>>> connections we can access the page using Squid.
>>> The supplier insists that since we can access the pages without
>>> Squid, the problem must be ours. I replied him that it all begin a
>>> few weeks ago, so the problem is theirs.
>>
>> It's a problem with the Source web server.
>> The Server is sending FORBIDDEN chunked-encoded data to a HTTP/1.0
>> client (Squid).
>>
>> http://squidproxy.wordpress.com/2008/04/29/chunked-decoding/
>
>
> Hello Amos,
>
> I am not sure that is the problem. I think that the problem is that,
> when the client asks for the use of HTTP/1.1, Squid identifies itself as
> 1.1 compliant:

Ah, for squid 2.6 to be doing that it has to be patched to do so. Such
broken behavior is exactly why squid other than 2.7 are not released
with that ability.

I still think its the chunk issue, as most in-use squid pass through a
version of Accept-Encoding that triggers the bug in some HTTP/1.1 servers.

>
> ERROR
> The requested URL could not be retrieved
>
> --------------------------------------------------------------------------------
>
>
> While trying to process the request:
>
> GET
> /pls/b2b/pka102.p001?pIdHotel=146241&pIDProducto=1&pIdioma=ESP&pTarifas=2008&pEjercicio=undefined
> HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, */*
> Accept-Language: es
> ...
>
>
> If, on Internet Explorer, I disable the use of HTTP/1.1 on proxy
> connections then Squid gets the page. By the way, squidclient uses
> HTTP/1.0 when talking to squid ... and it gets the page:
>
> peter_at_antares[~](6)$ squidclient -u X -w Y
> 'http://www.transhotel.com/pls/b2b/pka102.p001?pIdHotel=146334&pIDProducto=1&pIdioma=ESP&pTarifas=2008&pEjercicio=undefined'
>
> HTTP/1.0 200 OK
> Content-Type: text/html; charset=ISO-8859-1
> Server: Oracle-Application-Server-10g OracleAS-Web-Cache-10g/10.1.2.2.0
> (H;max-age=432000+0;age=148389;ecid=217160916730,0)
> X-DB-Content-length: 7308
> Date: Mon, 18 Aug 2008 07:39:12 GMT
> Content-Length: 7299
> X-Cache: MISS from proxy.viajesinsular.es

> Via: 1.0 proxy.viajesinsular.es:3128 (squid/2.6.STABLE14)

There you go; squid advertising itself as 1.0 to the server.

Try the Accept-Encoding config hack and see if its lets you turn on
HTTP/1.1 support in clients again.

Amos

-- 
Please use Squid 2.7.STABLE3 or 3.0.STABLE8
Received on Wed Aug 20 2008 - 03:24:27 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 20 2008 - 12:00:04 MDT