Then the code should be changed to something like : 
...
if (challenge != null && !challenge.equalsIgnoreCase("ntlm")) {
...
and it would work perfectly ! (and it'd be cleaner than our crappy (but efficient ;]) 
workaround)

Thanks for your answer :)

Have all a nice day 
Isabelle

> -----Original Message-----
> From: Steve Vaughan [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 31, 2003 5:14 PM
> To: Commons HttpClient Project
> Subject: Re: authentication ...
> 
> 
> We ran into the same problem (and used the same temporary 
> workaround).  It 
> seems to me that HttpAuthenticator.selectAuthScheme should 
> take into account 
> the credentials that are available, skipping authentications 
> schemes without 
> credentials.  In your case, since you only provided 
> UsernamePasswordCredentials, NTLM couldn't possibly work so 
> it shouldn't have 
> been selected by the code.
> 
> -Steve
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to