HttpClient v3 Proxy

July 25, 2012

If you need to proxy HttpClient v3 calls through a proxy server, you can do it by setting the following after creating the HttpClient instance:

HttpClient lClient = new HttpClient();
lClient.getHostConfiguration().setProxy("proxyserver.domain.name", 3141);

Tags: httpclient proxy