hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Multiple proxy-authenticate headers...
Date Thu, 08 May 2008 22:42:21 GMT
On Thu, 2008-05-08 at 17:10 -0500, Cathy L Kegley wrote:
> Hi Oleg,
> 
> Thanks for your quick response. Can I force HttpClient to use BASIC
> over NTLM on the fly and only for that particular connection?
> 

No, currently not.  


> The functionality I am looking for would be for NTLM to be used all
> the time. If for some reason NTLM fails (user is outside of the domain
> or credentials are no longer in sync with Active Directory) I then
> want BASIC authentication to be used. (As long as the proxy server
> passes BASIC as a second option.) Is this possible?
> 

Yes, kind of. The problem is "http.auth.scheme-priority" in HttpClient
3.x is a client level parameter. It applies to all requests executed by
that client. This needs to be fixed in 4.0 codeline.

Oleg



> Cathy
> 
> Inactive hide details for Oleg Kalnichevski ---05/08/2008 04:43:57
> PM---On Thu, 2008-05-08 at 16:10 -0500, Cathy L Kegley wroteOleg
> Kalnichevski ---05/08/2008 04:43:57 PM---On Thu, 2008-05-08 at 16:10
> -0500, Cathy L Kegley wrote:
> 
> 
> From:
> 
> Oleg Kalnichevski
> <olegk@apache.org>
> 
> To:
> 
> HttpComponents Project
> <dev@hc.apache.org>
> 
> Date:
> 
> 05/08/2008 04:43 PM
> 
> Subject:
> 
> Re: Multiple proxy-authenticate
> headers...
> 
> 
> ______________________________________________________________________
> 
> 
> 
> On Thu, 2008-05-08 at 16:10 -0500, Cathy L Kegley wrote:
> > If a proxy server returns multiple proxy-authenticate headers, say
> one with
> > NTLM and one with BASIC, will the HttpClient attempt BASIC
> authentication
> > if the NTLM attempt fails?
> > 
> > Cathy
> 
> Hi Cathy,
> 
> No, it won't. It probably does not make sense to retry authentication
> with a different scheme if credentials remain unchanged. You can force
> HttpClient to choose BASIC over NTLM, though.
> 
> Oleg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
> 
> 
> 


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


Mime
View raw message