Re: [squid-users] Problem with Squid-3.0.STABLE1 and ICAP

From: Christos Tsantilas <christos@dont-contact.us>
Date: Sat, 05 Jan 2008 16:52:58 +0200

Hi Selvi,

selvi wrote:
>
> I am using the Python based ICAP Server.

Is the icap-server from the following location?
   http://sourceforge.net/projects/icap-server/
I try to use it some months ago with squid3 but I had problems too.....

From the debug messages I am seeing that at least one response from the
ICAP server is wrong. The Encapsulated Header at the ICAP server
response has wrong syntax, must be:
  Encapsulated: res-hdr=0, res-body=269

> ........................
> 2008/01/05 15:19:41.425| ICAPModXact remains final [FD 14;RrB/w icapx1]
> 2008/01/05 15:19:41.425| ICAP/ICAPModXact.cc(574) have 428 bytes to
> parse [FD 14;RrB/w icapx1]
> 2008/01/05 15:19:41.425| ICAP/ICAPModXact.cc(575)
> ICAP/1.0 200 OK^M
> Date: Sat, 05 Jan 2008 09:49:41 GMT^M
> Encapsulated: res-hdr=0 res-body=269^M
Here missing a "," ^

> Server: ICAP-Server-Software/1.0^M
> ^M
> HTTP/1.0 200 OK^M
> Content-Length: 29^M
> Accept-Ranges: bytes^M
> Server: Apache/2.0.52 (Red Hat)^M
> Last-Modified: Sat, 05 Jan 2008 07:22:49 GMT^M
> Connection: close^M
> ETag: "64cce7-1d-442f47e85e440"^M
> Connection: close^M
> ETag: "64cce7-1d-442f47e85e440"^M
> Date: Sat, 05 Jan 2008 09:49:41 GMT^M
> Content-Type: text/html; charset=UTF-8^M
> ^M
> <html>
> Hello Selvi
> </html>
>
>
> ^M
>
> 2008/01/05 15:19:41.426| ICAP/ICAPModXact.cc(653) parse ICAP headers
> 2008/01/05 15:19:41.426| ICAP/ICAPModXact.cc(882) have 428 head bytes to
> ................
Received on Sat Jan 05 2008 - 07:53:13 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:04 MST