httpClient.getHostConfiguration().setProxy("192.168.101.1", 5608); httpClient.getParams().setAuthenticationPreemptive(true); //如果代理需要密码验证,这里设置用户名密码 httpClient.getState().setProxyCredentials(AuthScope.ANY, new UsernamePasswordCredentials("llying.iteye.com","llying")); 参考:http:/...