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: [email protected] For additional commands, e-mail: [email protected]
