Android: HTTPS (SSL) connection using HttpsURLConnection

前端 未结 3 1263
醉梦人生
醉梦人生 2020-12-12 23:09

I have 2 apps, one is a Servlet/Tomcat Server, and the other is an Android app.

I want to use HttpURLConnection to send and receive XML between both.

Code:

3条回答
  •  心在旅途
    2020-12-12 23:41

    If you want to ignore all the certificate, ignore the handshake, then this works: HttpsURLConnection and intermittent connections

提交回复
热议问题