}
// Prepare the ICAP request.
IcapRequest request = new DefaultIcapRequest(IcapVersion.ICAP_1_0,IcapMethod.REQMOD,"/simple","localhost");
request.setBody(IcapMessageElementEnum.REQBODY);
request.addHeader(IcapHeaders.Names.PREVIEW,"50");
HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST,"/some/servers/uri");
httpRequest.setHeader(HttpHeaders.Names.HOST,host);
httpRequest.setHeader(HttpHeaders.Names.CONNECTION, HttpHeaders.Values.CLOSE);
httpRequest.setHeader(HttpHeaders.Names.ACCEPT_ENCODING, HttpHeaders.Values.GZIP);
request.setHttpRequest(httpRequest);