1INCLUDE $TOP/test/config.htb
2
3CLIENT
4
5_REQ $YOUR_HOST $YOUR_PORT
6__REQMOD /your/path/to/your/resource?your=params ICAP/1.0
7__Host: $YOUR_HOST
8__Encapsulated: req-hdr=0, null-body=AUTO
9__
10__GET / HTTP/1.1
11__Host: 127.0.0.1
12__
13_EXPECT . "ICAP/1.0 200 OK"
14_WAIT
15END
16
17SERVER $YOUR_PORT
18_RES
19_WAIT
20__ICAP/1.0 200 OK
21__Connection: close
22__Encapsulated: req-hdr=0, res-hdr=AUTO, res-body=AUTO
23__
24__GET / HTTP/1.1
25__Host: 127.0.0.1
26__
27__HTTP/1.1 200 OK
28__Content-Length: AUTO
29__Content-Type: text/plain
30__
31__== AS1 ==
32END
33
34