HTTP Proxy setting in Java

Submitted by:Jhon Jhon

Date added:17 February, 2014

Category:Java

Add the following lines in your Java code

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