Hi Folks,

I am calling a .Net HttpHandler deployed on IIS that is used to access documents on SharePoint.

I am using the apache HttpClient (org.apache.commons.httpclient.HttpClient) and GetMethod to call Handler, see code snippets below.
I am also setting authenitication credentials for NTLM authentication.

client = new HttpClient();
method = new GetMethod(URL to handler)
client.getState().setCredentials(AuthScope.ANY,
new NTCredentials(SP_HTTP_HANDLER_USERNAME,
SP_HTTP_HANDLER_PASSWORD,
SP_HTTP_HANDLER_HOST,
SP_HTTP_HANDLER_DOMAIN));
client.executeMethod(method);
String response = method.getResponseBodyAsString();

I am using TCPMon as proxy to see request going out and response comeing back.
Request URL and parameters look correct, howvere response is "Bad Request"
When I look in logs for IIS, I can't see request in log.
If it take request and parameters and paste in browser it hits handler as expected, and can see request in IIS logs.
Any ideas

Cheers