HTTP Proxy setting

Submitted by:Jhon Brain

Date added:06 June, 2013

Category:Java

How to set HTTP Proxy in Java

Tags: http proxy

Code Snippet:

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

Comments