Android: Making Https Request

后端 未结 2 1686
执念已碎
执念已碎 2020-12-01 02:02

How do I avoid the \"javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated\" exception and the Android Apache lib gap \"The constructor SSLSocketFactory(SSLContex

2条回答
  •  不思量自难忘°
    2020-12-01 02:15

    I had similar problem which is more like this question but the root cause was completely different from those mentioned in both questions.

    I was using DefaultHttpClient as httpclient for requesting https://maps.googleapis.com like links. I was trying whole banch of proposed solutions but none worked for me. After some more hours trying to solve it found root cause: My device was connected to a guest WIFI which probably has some specific filtering rules which blocked relevant network parts. Switching to a different network solved my problem.

提交回复
热议问题