Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Joel Elliott   on Nov 28 In Java Category.

  
Question Answered By: Ruairidh Anderson   on Nov 28

set the System properties below and then try

String lStrhttpHost = "http.proxyHost:";
String lStrhttpPort = "http.proxyPort:";
String lStrhttpsHost = "https.proxyHost:";
String lStrhttpsPort = "https.proxyPort:";
System.setProperty(lStrhttpHost, httpProxyIP);
System.setProperty(lStrhttpPort, httpProxyPort);
System.setProperty(lStrhttpsHost, httpsProxyIP);
System.setProperty(lStrhttpsPort, httpsProxyPort);

now you are able to connect  to http
if your proxy  supports the socks the sets the socks
properties:
System.setProperty("socks.proxyHost", proxyHost);
System.setProperty("socks.proxyPort", proxyPort);

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on problem of connection to mail server by smtp Or get search suggestion and latest updates.


Tagged: