http 请求头部和相应头部

286 阅读1分钟

简介

对于请求头部和相应头部的认识

请求头部

在http请求头部里面 含有的参数有(常用):

  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

响应头部

  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