I'm trying to get the page from a HttpsURLConnection to setPage() on a component.
java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection
That's an error I get.
Any fixes?
URL url = new URL("https://www.lalala.tk/website.html");
HttpsURLConnection httpsConn = (HttpsURLConnection) url.openConnection();