Current location - Quotes Website - Signature design - Android uses OkHttp to request self-signed https websites.
Android uses OkHttp to request self-signed https websites.
For security reasons, many companies use /otn/) in their projects and will report the following errors:

HTTPS requires the client (browser) and the server (website) to shake hands before transmitting data, and the password information of both parties will be established during the handshake. The handshake process is briefly described as follows:

If there is any error during the handshake, the encrypted connection will be disconnected, thus preventing the transmission of private information.

Let's take the website 12306 as an example.

Note: Don't forget to add permissions and rely on ok/wildma/okhttps.

Reference blog: http://blog.csdn.net/lmj623565791/articles/details /48 129405.