// TODO make this a JMeter property
httpMethod.setHttp11(!System.getProperty("http.version","1.1").equals("1.0"));
httpState = new HttpState();
if (httpConn.isProxied() && httpConn.isSecure()) {
httpMethod = new ConnectMethod(httpMethod);
}
// Allow HttpClient to handle the redirects:
httpMethod.setFollowRedirects(getPropertyAsBoolean(AUTO_REDIRECTS));