I have installed 2 destinations in my SG with HTTPs protocol.
1 is for:

another is for:

from my application, I want to access these 2 url like this:
url = new URL(urlStr);
httpConn = (HttpURLConnection) url.openConnection();
httpConn.setReadTimeout(5000);
httpConn.setConnectTimeout(5000);
if(httpConn.getResponseCode() == 200){
inStream = httpConn.getInputStream();
bytesData = IOUtils.toByteArray(inStream);
}
btw, I set the cloud host&port in SG into "urlStr".But it can not work.So anyone can help on a hint?
I fleshed out the code a bit further and got it to work. Perhaps this extended code sample will help you. I would suggest putting in the URL parameter the address starting with https and without a port number as it will default to 443. You can run this with with a classpath similar to java -cp commons-io-2.6/commons-io-2.6.jar:. javassl