Don't say anything, let's just look at the picture!
Supplementary knowledge: main content of python http request header
The http request request header mainly includes the following content:
header name | function | example |
---|---|---|
Accept | Specify the type of content that the client can receive | Accept: text/plain, text/html |
Accept-Charset | The character encoding set that the browser can accept. | Accept-Charset: iso-8859-5 |
Accept-Language | Browser acceptable languages | Accept-Language: en,zh |
Accept-Encoding | Specify the web server that the browser can support to return the content compression encoding type. | Accept-Encoding: compress, gzip |
When a Cookie | HTTP request is sent, all cookie values stored in the requested domain name will be sent to the web server together. | Cookie: $Version=1; Skin=new; |
Content-Type | The requested MIME information corresponding to the entity | Content-Type: application/x-www-form-urlencoded |
Content-Length | Requested content length | Content-Length: 520 |
Host | Specify the domain name and port number of the requested server | Host: www.juziwulian.com |
From | Email of the requesting user | From: [email protected] |
Expect | The specific server behavior requested | Expect: 100-continue |
Date | The date and time the request was sent | Date: Tue, 15 Nov 2020 15:10:01 GMT |
The above python requests.get with header is all the content shared by the editor. I hope to give you a reference.
Recommended Posts