HttpClient4 设置代理 2015/04/06 12806 HttpClient4 设置代理 DefaultHttpClient client = new DefaultHttpClient(); HttpHost proxy = new HttpHost(ip, port); client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);