return response;
}
};
}
};
credsProvider = new WildcardMatchingCredentialsProvider();
httpClient.setCredentialsProvider(credsProvider);
httpClient.addRequestInterceptor(new PreemptiveAuth(), 0);
httpClient.getParams().setParameter(ClientPNames.HANDLE_REDIRECTS, true);
httpClient.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY);
httpClient.getParams().setParameter(CookieSpecPNames.SINGLE_COOKIE_HEADER, Boolean.TRUE);