hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From preethig <pgson...@gmail.com>
Subject Re: Making HTTPClient work with SPNEGO authentication
Date Fri, 22 Feb 2013 15:33:10 GMT
Thanks Oleg.

I have one more question, what configuration needs to be set on Httpclient
if one wants the client to try with basic authentication challenge incase
SPNEGO fails
eg: 

List<String> authpref = new ArrayList<String>();
authpref.add(AuthPolicy.SPNEGO);
authpref.add(AuthPolicy.BASIC);
httpclient.getAuthSchemes().register(AuthPolicy.SPNEGO, spnego);
httpclient.getAuthSchemes().register(AuthPolicy.BASIC, new
BasicSchemeFactory());

I set the above configuration hoping the  HttpClient will use the BASIC
scheme when the SPNEGO one fails? is it the right way? am i missing
something?

Best Regards,
Preethi 



--
View this message in context: http://httpcomponents.10934.n7.nabble.com/Making-HTTPClient-work-with-SPNEGO-authentication-tp19413p19466.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

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


Mime
View raw message