ICAP client 发起了一个对于一个entity(实体)的修正,修改后的结果以Get方式返回给客户。orignal Client Get 的内容在www.origin-server.com; ICAP server 是"icap.example.org". 在这中RESPMODE请求方式中不允许有request body,可以有response body.
ICAP Response Modification Example 1 - ICAP Request
说明:这是ICAP client发送的请求部分,其中Encapsulated: req-hdr=0, res-hdr=137,res-body=296 这部分内容,req-hdr=0 表示请求头部的offset(偏移量)为0,res-hdr=137表示,指头部大小即“GET / origin-resource HTTP/1.1 .....Accept-Encoding:gzip,compress ”这部分的长度是137bytes,res-body=296指“HTTP/1.1 200 OK....Content-Length:51”这部分的长度是(296-137)=159bytes.
——————————————————————————————
RESPMOD icap://icap.example.org/satisf ICAP/1.0
Host: icap.example.org
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
This is data that was returned by an origin server.
0