}
if (params == null) {
throw new IllegalArgumentException("HTTP params may not be null");
}
this.session = session;
this.context = new SyncHttpExecutionContext(null);
int buffersize = HttpConnectionParams.getSocketBufferSize(params);
int linebuffersize = buffersize;
if (linebuffersize > 512) {
linebuffersize = 512;