lastRequestEncoding = "plaintext";
}
// independent of request-gzipping, we do accept the response to be gzipped,
// so indicate this to the server:
method.addRequestHeader("Accept-Encoding", "gzip");
DefaultHttpMethodRetryHandler retryhandler = new DefaultHttpMethodRetryHandler(0, false);
httpClient.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryhandler);
httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(1000*config.getConnectionTimeout());
httpClient.getHttpConnectionManager().getParams().setSoTimeout(1000*config.getSoTimeout());
method.getParams().setSoTimeout(1000*config.getSoTimeout());
httpClient.executeMethod(method);