Thanks for your reply.

The client machine and the machine running protected resource is in same
domain, and the logged-on user can access the resource with its
user/password.

I tried URLConnection in java, it can access the resource successfully: when
URLConnection receives unauthorized error 401 for the first request, and
detect the remote server supports nltm, URLConnection will create a token
and add the http header like: Authorization: NTLM TlRMTVNTUAABAAAAB7IIogwA.
Then the request will succeed.

How can we do this using apache httpcomponents? Can httpcomponents add the
Authorization token using logged-on user info automatically?

Thanks.



--
View this message in context: 
http://httpcomponents.10934.n7.nabble.com/How-to-get-the-default-windows-user-password-and-the-domain-name-for-the-current-logined-user-tp19675p19709.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

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

Reply via email to