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

From: Pedro Mansito Pérez <Pedro.Mansito_at_viajesinsular.es>
Date: Mon, 18 Aug 2008 08:56:52 +0100

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:

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@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)
Proxy-Connection: close

<html><head><title>Informaci?n del establecimiento</title> <link
rel="stylesheet" href="/estilos.css">
        <style type="text/css">
...

Best regards,

Pedro.
Received on Mon Aug 18 2008 - 07:57:20 MDT

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