requests --- HTTPS request

What is HTTPS

HTTPS stands for Hyper Text Transfer Protocol over Secure Socket Layer, is a security target HTTP channel, simply say is secure version of HTTP, HTTP added SSL layer, referred to as HTTPS

Which is HTTPS SSL security infrastructure, and therefore by its contents are transmitted through SSL encryption, its main role can be divided into two types:

1, establish a channel of information security to ensure the security of data transmission

2, to ensure the authenticity of the site, any use of the HTTPS site, you can view real information after the certification website by clicking on the lock symbol in the browser address bar.

 

send HTTPS requests

1.requests transmission request

2. Send request header carrying https

SSL certificate validation

requests the SSL certificate is authenticated, SSL as default browsers, SSL validation is enabled by default, if the certificate verification fails, Requests throws SSLError, if the certificate verification fails when coupled with verify = False

Source:

 

 

Guess you like

Origin www.cnblogs.com/wxlog/p/11224605.html