HttpClient client= new HttpClient();
client.getHostConfiguration().setProxy("proxy.getway", port);
client.getParams().setAuthenticationPreemptive(true);
Credentials credential= new UsernamePasswordCredentials("username", "password");
client.getState().setProxyCredentials(AuthScope.ANY, defaultcreds);
沒有留言:
張貼留言