Introduction
Understanding of request headers and corresponding headers
Request header
The parameters contained in the http request header are (commonly used):
- Accept
- Accept-Encoding
- Accept-Language
- Cache-Control
- Connection
- Host
- Pragma
- Upgrade-Insecure-Requests
- User-Agent
- Cookie
- Content-Length
- Content-Type
- If-Match
- If-Modified-Since
- If-None-Match
- Referrer
Accept
Specify the type of content that the client can receive
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8
Accept-Encoding
Specify the type of compression encoding returned by the web server that the browser can support
Accept-Encoding:gzip, deflate, br
Response header
- Connection
- Content-Encoding
- Date
- Transfer-Encoding
- Accept-Ranges
- Age
- Cache-Control
- Content-Length
- Content-Type
- Expires
- Last-Modified
- Pragma
- Server
- X-Powered-By
- Set-Cookie
- ETag