HttpClient4.1.3设置代理

HttpClient client = new DefaultHttpClient();
client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, new HttpHost(proxyIp, proxyPort));

你可能感兴趣的:(HttpClient4.1.3设置代理)