@Override
public void configureHttpClient(DefaultHttpClient client) {
client.getParams().setBooleanParameter(ClientPNames.HANDLE_REDIRECTS, false);
client.addRequestInterceptor(new RequestCopyHeadersInterceptor());
client.removeResponseInterceptorByClass(ResponseProcessCookies.class);
client.addResponseInterceptor(new VegaResponseProcessCookies());
}