Closed amirinenik closed 6 years ago
This will work, but I don't understand what it accomplishes? HttpUrlConnection
is already the superclass of HttpsUrlConnection
so it shouldn't need a cast to the subclass, unless you need to do something special with the subclass.
Correct. I am trying to fix the self signed cert issues. I will close my request and come up with cert issues fixes in case of self signed or invalid certs.
checked url protocol and opened connection for https url support.