Hello All,
I have downloaded the latest version of icap_server & squid-icap_client
available in sf.net. Installed & configured to use respmod. I used
bannerPl.py to insert a html tag like
insert_matter = "<TABLE><tr><td><br><br>BANNER<br></td></tr></TABLE>"
Example: ICAP Response Modification ICAP Request and Response
[root@jasmine squid-icap]# telnet 172.16.1.192 1344
Trying 172.16.1.192...
Connected to 172.16.1.192.
Escape character is '^]'.
RESPMOD icap://172.16.1.192/respmod ICAP/1.0
Host: 172.16.1.192
Encapsulated: req-hdr=0, res-hdr=137, res-body=296
GET /origin-resource HTTP/1.1
Host: www.origin-server.com
Accept: text/html, text/plain, image/gif
Accept-Encoding: gzip, compress
HTTP/1.1 200 OK
Date: Mon, 10 Jan 2000 09:52:22 GMT
Server: Apache/1.3.6 (Unix)
ETag: "63840-1ab7-378d415b"
Content-Type: text/html
Content-Length: 51
33
<html><body>This is an origin server.</body></html>
0
ICAP/1.0 200 OK
Date: Wed, 12 Oct 2005 08:30:48 GMT
Encapsulated: res-hdr=0 res-body=159
Server: ICAP-Server-Software/1.0
HTTP/1.1 200 OK
Date: Mon, 10 Jan 2000 09:52:22 GMT
Content-Length: 94
ETag: "63840-1ab7-378d415b"
Content-Type: text/html
Server: Apache/1.3.6 (Unix)
6a
<html><body><TABLE><tr><td>Welcome to ViSolve.com</td></tr></TABLE>This is
an origin server.</body></html>
Connection closed by foreign host.
[root@jasmine squid-icap]#
The problem is the value 6a (content size) is also displayed my browser.
Since the ICAP protocol is designed in that way i am confused if this is the
problem with squid-icap. i am in the process of debugging the problem..
Please help me in this regard.
Thanks,
-Senthil Murugan
Received on Wed Oct 12 2005 - 03:10:34 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:04 MST