Accessing secure web-pages in Java – from behind a proxy

Timeouts when connecting to https:// pages

One potential source of the issue, would be that the proxy for your app is not set correctly. From within your Java app – you may need to set two elements for the proxy – one for regular(http) and another for secure(https) pages.

System.setProperty("http.proxyHost", "");
System.setProperty("http.proxyPort", "8765");

System.setProperty(“https.proxyHost”, “”);
System.setProperty(“https.proxyPort”, “8766”);


Oracle technotes on proxies




This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s