I tried numerous suggestions from the list on how
to authenticate via proxy when you try the httpclient. But noe worked. Then i
ended up using these steps...
/********************************************************************************************************************
*/
HttpClient client = new HttpClient();
client.getState().setAuthenticationPreemptive(true);
client.getHostConfiguration().setProxy("proxyHost", nProxyPortNo);
//
proxyHost is location of proxy server (ipaddress)
client.getState().setProxyCredentials(null, null, new UsernamePasswordCredentials("proxyusername", "proxypassword")); // Create a method instance. HttpMethod method = new GetMethod(url); /********************************************************************************************************************
*/
Hope this will help someone else save their
time.
Regards...
Saifadam Pathan
Project Engineer
ControlNet India Pvt Ltd.
Goa- India |
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]