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)
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.