Re: [squid-users] Squid 3.0 problem with chunked encoding

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 31 Jul 2008 12:55:09 +1200 (NZST)

> I'm working through a problem where pages from a broken web server
> aren't making it through Squid 3.0 (tested up through STABLE 8). The
> page source according to the browser (Firefox 2, Firefox 3, or IE7) is
> the "28B" which should be the start of the chunk, followed by the chunk
> itself, and then "0" that would finish the chunked transfer.
> I'm hoping that I can manage to contact the admins of the web server and
> get them to fix their problem, but is there any way I can work around
> the problem in Squid?

Squid 3.0 does not support chunks. There is a config workaround to drop
the Accept-Encoding header on requests going to known broken HTTP/1.1
servers which try to send chunks to 1.0 clients.

http://squidproxy.wordpress.com/2008/04/29/chunked-decoding/

If you really need chunked and 3.x you will need the HEAD code.

Amos

>
> Here are the two transactions, first performed directly with the web
> server using netcat, and then via Squid:
>
> Direct to Server:
> -----------------
> GET /home.htm HTTP/1.0
> Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxx
>
> Response from Server:
> ---------------------
> HTTP/1.1 200 OK
> Date: Thu, 31 Jul 2008 17:48:08 GMT
> Server: TekWS/1.0.0 Series-M/6.2.01 23500
> Set-Cookie: SID=xxxxxxxxxxxxx; httponly
> Content-Type: text/html
> Cache-Control: no-cache
> Set-Cookie: SID=xxxxxxxxxxxxx; httponly
> Connection: close
> Transfer-Encoding: chunked
>
> 28B
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
> "http://www.w3.org/TR/html4/frameset.dtd">
> <html>
> <head>
> <title>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <link rel="shortcut icon" href="images/favicon.ico" />
> </head>
> <frameset rows="*,0" frameborder="no"framespacing="0">
> <frame src="data/map.fxml?nocache&idn=102 &now=46088571 "
> name="mainFrame" scrolling="no" application="yes">
> <!--<frame src="status.htm" name="statusFrame" application="yes">-->
> <noframes>
> <body>
> Browser must support frames.
> </body>
> </noframes>
> </html>
> 0
>
>
> Sent to Squid:
> --------------
> GET http://99.99.199.99:9999/home.htm HTTP/1.0
> Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxx
>
> Received from Squid:
> --------------------
> HTTP/1.0 200 OK
> Date: Thu, 31 Jul 2008 17:50:17 GMT
> Server: TekWS/1.0.0 Series-M/6.2.01 23501
> Set-Cookie: SID=xxxxxxxxxxxxx; httponly
> Content-Type: text/html
> Cache-Control: no-cache
> Set-Cookie: SID=xxxxxxxxxxxxx; httponly
> Transfer-Encoding: chunked
> X-Cache: MISS from xxxxxxxxxxxxxxxxx.palisadesys.com
> Proxy-Connection: close
>
> 28B
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
> "http://www.w3.org/TR/html4/frameset.dtd">
> <html>
> <head>
> <title>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <link rel="shortcut icon" href="images/favicon.ico" />
> </head>
> <frameset rows="*,0" frameborder="no"framespacing="0">
> <frame src="data/map.fxml?nocache&idn=102 &now=46217962 "
> name="mainFrame" scrolling="no" application="yes">
> <!--<frame src="status.htm" name="statusFrame" application="yes">-->
> <noframes>
> <body>
> Browser must support frames.
> </body>
> </noframes>
> </html>
> 0
>
>
>
>
Received on Thu Jul 31 2008 - 00:55:13 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 31 2008 - 12:00:05 MDT