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 > <[EMAIL PROTECTED]> > > To: > > HttpComponents Project > <[email protected]> > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
