i am facing a problem please help me, my problem, i have to connect another server, get response code and based on the response code redirect it to ther website or error page, my code was working fine for http site, now i need to do the same thing for HTTPS site but i am getting the below error :
i have seen the simillar question on this site but i followed the same still i am getting this error, actually i tried disabling the certificate verification by using "TrustManager" but still throwing the same error.
The error is thrown on this line :
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
i have attached the java file, please have a look and let me know the solution.
if you have a example code please provide me.
java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection