HttpHost proxy = new HttpHost(“ip”, port); httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);