com.android.okhttp.internal.http.httpurlConnectionImpl nie można rzucić na javax.net.ssl.httpsurlConnection

Method 1: Your urlString must begin with 
https:// and not http:// for you to be able to cast it to a HttpsURLConnection.


Method 2: if your urlString starts with 
http://, changing HttpsURLConnection to HttpURLConnection should work
Healthy Heron