hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: NTLMv2 sample code
Date Fri, 12 Sep 2014 08:04:38 GMT
On Fri, 2014-09-12 at 09:42 +0300, Harri T. wrote:
> Hi! Could someone provide me with a sample code for accessing NTLMv2 
> authenticated service with HttpClient?
> 
> The page https://hc.apache.org/httpcomponents-client-4.3.x/ntlm.html has 
> only sample code based on JCIFS.
> 
> Harri
> 

NTLMv2 auth is no different than other auth methods supported by
HttpClient

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.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message