- HttpClient httpclient = new HttpClient();
- httpclient.getHostConfiguration().setProxy("test.proxy.co.jp", 8080);
- httpclient.getState().setProxyCredentials(new AuthScope("test.proxy.co.jp", 8080), new UsernamePasswordCredentials("testUser", "password"));
|