Answers for "com.android.okhttp.internal.http.HttpURLConnectionImpl cannot be cast to javax.net.ssl.HttpsURLConnection"

0

com.android.okhttp.internal.http.HttpURLConnectionImpl cannot be cast to 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
Posted by: Guest on September-30-2021

Code answers related to "com.android.okhttp.internal.http.HttpURLConnectionImpl cannot be cast to javax.net.ssl.HttpsURLConnection"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language