hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cathy L Kegley <ckeg...@us.ibm.com>
Subject Re: Multiple proxy-authenticate headers...
Date Thu, 08 May 2008 22:10:18 GMT

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?

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?

Cathy


                                                                                         
                                                   
  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



Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message