Java tutorial
//package com.java2s; import java.io.IOException; import java.net.URL; import javax.net.ssl.HttpsURLConnection; public class Main { private static HttpsURLConnection urlConnection; public static HttpsURLConnection parseURLConnection(String urlString) throws IOException { URL url = new URL(urlString); urlConnection = (HttpsURLConnection) url.openConnection(); return urlConnection; } }