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: httpclient does not work for https via user/ password
Date Mon, 24 Jan 2005 15:57:47 GMT
On Mon, Jan 24, 2005 at 04:51:59PM +0100, Christian Neuroth wrote:
> hi
> 
> thanks for the reply...
> 
> i am still not able to log me into the page. however, the following
> stacktrace occurs. if those credentials could not be used... what should i
> use?
> 
> >>>
> SCHWERWIEGEND: Credentials cannot be used for NTLM authentication:
> org.apache.commons.httpclient.UsernamePasswordCredentials
> org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials
> cannot be used for NTLM authentication:
> org.apache.commons.httpclient.UsernamePasswordCredentials
> 	at
> org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:331)
> 	at
> org.apache.commons.httpclient.HttpMethodDirector.authenticateHost(HttpMethodDirector.java:276)
> 	at
> org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:228)
> 	at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:167)
> 	at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:393)
> 	at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
> 	at TestClient.testHot(TestClient.java:83)
> 	at TestClient.main(TestClient.java:20)
> 24.01.2005 16:48:00 org.apache.commons.httpclient.HttpMethodDirector
> processWWWAuthChallenge
> <<<

This basically means that you have got to use NTCredentials instead of
plain-vanilla UsernamePasswordCredentials, because NTLM authentication
scheme also requires the authentication domain to be specified.

For details see
http://jakarta.apache.org/commons/httpclient/3.0/authentication.html

Oleg


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


Mime
View raw message