Saturday 10 February 2018

How to set proxy settings for https, http communication


You should set below system properties for https communication.
         https.proxyHost
https.proxyPort

You should set below system properties for http communication.
         http.proxyHost
http.proxyPort

Example
String hostName = "";
String port = "";

System.setProperty("https.proxyHost", hostName);
System.setProperty("https.proxyPort", port);


You may like

No comments:

Post a Comment