ClientConnectionManager ccm = new ThreadSafeClientConnManager(supportedSchemes);
DefaultHttpClient httpclient = new DefaultHttpClient(ccm, params);
if (!allowRedirectFollow) {
// Do NOT allow for 302 REDIRECT
httpclient.setRedirectStrategy(new DefaultRedirectStrategy() {
public boolean isRedirected(HttpRequest request, HttpResponse response, HttpContext context) {
boolean isRedirect = false;
try {
isRedirect = super.isRedirected(request, response, context);
} catch (ProtocolException e) {