http request header and corresponding header

Introduction

Understanding of request headers and corresponding headers

Request header

The parameters contained in the http request header are (commonly used):

  1. Accept
  2. Accept-Encoding
  3. Accept-Language
  4. Cache-Control
  5. Connection
  6. Host
  7. Pragma
  8. Upgrade-Insecure-Requests
  9. User-Agent
  10. Cookie
  11. Content-Length
  12. Content-Type
  13. If-Match
  14. If-Modified-Since
  15. If-None-Match
  16. 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

  1. Connection
  2. Content-Encoding
  3. Date
  4. Transfer-Encoding
  5. Accept-Ranges
  6. Age
  7. Cache-Control
  8. Content-Length
  9. Content-Type
  10. Expires
  11. Last-Modified
  12. Pragma
  13. Server
  14. X-Powered-By
  15. Set-Cookie
  16. ETag

Guess you like

Origin blog.csdn.net/wancheng815926/article/details/105773255