com.android.okhttp.internal.http.httpurlconnectionimpl ne peut pas être jeté sur 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