[Illustration] HTTP - HTTP headers

HTTP headers

  • Http request and response messages must be included in the HTTP header
  • HTTP headers understood as follows:Contents + Overview + additional information
    Here Insert Picture Description
  • Request packet
    Here Insert Picture Description
  • Response message
    Here Insert Picture Description

[1] HTTP header field

  • Request and response header fields are used,Pass additional role of information
    Here Insert Picture Description

[2] HTTP header field to repeat how to do?

Protocol specification has not been clearly specified in this case, depending on the internal processing logic of the browser, and the result may be the same, some browsers will give priority to the first occurrence, some will deal with the last occurrence of header fields

[3] four kinds of HTTP header field type

1. Common header field (General Header Fields)

  • Field of the request packet and response packet are used
    Here Insert Picture Description

2. Request header field (Request Header Fields)

  • Supplemented request additional information, client information, and the associated response content and priority
    Here Insert Picture Description

3. The response header field (Response Header Fields)

  • Complements the additional content of the response, the client will be required to attach additional information, content information
    Here Insert Picture Description

4. The entity header field (Entity Header Fields)

  • Complements the resource content updated, relevant information to the entity
    Here Insert Picture Description
Published 234 original articles · won praise 107 · views 30000 +

Guess you like

Origin blog.csdn.net/weixin_44478378/article/details/105321987