Thursday, November 17, 2011

Configuring proxy settings in Java


System.getProperties().put("http.proxyPort", "someProxyPort");
System.getProperties().put("http.proxyUser", "someUserName");
System.getProperties().put("http.proxyPassword", "somePassword");
System.getProperties().put("http.proxyHost", "someProxyURL");

Courtesy by: Harish Gokavarapu

No comments:

Post a Comment