Hi,

I'm developing a program that calls a customizable webservice URL to
fetch some data. I would like to support the case where this
webservice requires NTLM authentification.

The code examples I found for httpclient set the credentials. For
instance, that's the case in:

http://hc.apache.org/httpcomponents-client-ga//ntlm.html

with:

new NTCredentials("username", "password", "MYSERVER", "MYDOMAIN")

However, as I understand NTLM can be done (on windows at least) by
fetching the information for the current logged in user, and if she is
already authentificated to the domain, use that automatically.
Basically, this is the unanswered question asked here:

http://stackoverflow.com/questions/18089907/apache-http-client-4-2-5-ntlm-integrated-authentication

Is this possible at all using httpclient?

When I try connecting without setting explicit user and password, I
get a 401 response, while if I understand correctly the 401 should be
responded to by further requests, but httpclient does not seem to try
to do it. I can send more details and logs if that's needed.

Thanks,

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to