On 12.9.2014 11:04, Oleg Kalnichevski wrote: > http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientAuthentication.java > > Oner just needs to provide NTCredentials instead of > UsernamePasswordCredentials.
Hi! I changed credentials to new NTCredentials(username, password, host, domain) but the authentication fails (HTTP 401). I'm not familiar with NTLM authentication methods. Maybe this is not NTMLv2 but some other Windows based authentication method. I captured network traffic when accessed with IE: IE IIS 1 |--------------- GET /path --------------->| - |<--- 401, WWW-Authenticate: Negotiate ----| 2 |------ GET /path, NTLMSSP_NEGOTIATE ----->| - |<-------- 401, NTLMSSP_CHALLENGE ---------| 3 |--------- GET /path, NTLMSSP_AUTH ------->| - |<--------------- 200, OK -----------------| Then I captured traffic when accessed with HttpClient and the requests 2 and 3 aren't send at all. Harri --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org