How to execute a https GET request from java

I developed a solution which looks easier that what has been posted here private String executeGet(final String https_url, final String proxyName, final int port) { String ret = “”; URL url; try { HttpsURLConnection con; url = new URL(https_url); if (proxyName.isEmpty()) { con = (HttpsURLConnection) url.openConnection(); } else { Proxy proxy = new Proxy(Proxy.Type.HTTP, new … Read more