400 Error bad request

From: Vikram Kumar <vikrampkumar_at_gmail.com>
Date: Mon, 07 Nov 2011 01:15:31 -0800

Hi,

I am getting the following error... "Error 400 Bad Request". for ICAP
Reqmod
message. Here's a snippet of the example ICAP client code..

request ="GET http://www.foobar.com <http://www.foobar.com/>
<http://www.foobar.com/>
<http://www.foobar.com/>
HTTP/1.1\r";
output.println("REQMOD icap://" + server + ":" + "1344" + "/"+ "REQMOD" + "
" + "1.0" +"\r");
output.println("Host:" + server + ":" + port + "\")
output.println("Encapsulated: req-hdr=0, null-body=" + length);
output.println("Preview: 0\r");
output.println("Allow: 204\r");

output.println("\r");
output.println(request);
output.println("\r");
Appreciate any help on this...this is a very simple ICAP client and i use
the same format for sending ICAP options message and that works...for some
reason REQMOD is getting rejected as bad request=8A

Thanks,

-Vikram.
Received on Mon Nov 07 2011 - 09:15:42 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 08 2011 - 12:00:11 MST