On Tue, 2012-03-20 at 18:57 -0700, kodeninja wrote: > Howdy, > > > I'm unable to figure out how to set NTLM as the preferred Proxy Auth Scheme > in 4.0.3. In 4.1.2, I can use the below code to achieve this: > > > DefaultHttpClient httpclient = new DefaultHttpClient(ccm, params); > > // Choose NTLM for proxy authentication > List<String> authpref = new ArrayList<String>(); > authpref.add(AuthPolicy.NTLM); > httpclient.getParams().setParameter(AuthPNames.PROXY_AUTH_PREF, authpref); > > > However, AuthPNames.PROXY_AUTH_PREF seems to be unavailable in 4.0.3, which > is the version I'm stuck with for some other reason. So, is there any way to > achieve the same in 4.0.3? >
You can override #getAuthPreferences() method of the DefaultTargetAuthenticationHander or DefaultProxyAuthenticationHander classes. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
