httpproc.addInterceptor(new RequestExpectContinue());
HttpRequestExecutor httpexecutor = new HttpRequestExecutor(httpproc);
httpexecutor.setParams(params);
HttpContext context = new HttpExecutionContext(null);
HttpHost host = new HttpHost("localhost", 8080);
context.setAttribute(HttpExecutionContext.HTTP_TARGET_HOST, host);
DefaultHttpClientConnection conn = new DefaultHttpClientConnection();
ConnectionReuseStrategy connStrategy = new DefaultConnectionReuseStrategy();
try {