Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Universal header and its function in HTTP Protocol

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Connection

Indicates how to handle the TCP connection when the client and the server communicate with HTTP. If the value of Connection is close, the TCP connection ends after the response of this HTTP request; if the value of Connection is Keep-Alive (default under HTTP1.1), the TCP connection is always valid

II. Date

The Date universal header field indicates the date and time when the message was generated.

III. Pragma

Is used to contain specific execution instructions that may be applied to any recipient during request and response messaging. The most commonly used one is Pragmatic:no-cache, which means that the requested entity content is not cached

IV. Transfer-Encoding

Indicates the transmission coding mode of the whole message body, mainly to realize the secure data transmission between the receiver and the sender. such as

Transfer-Encoding:chunked indicates that the message body is block encoded.

5. Upgrade

The client can use it to indicate that it wants to convert the protocol (for example, from one version of HTTP to another), and if the server agrees, it will switch to the specified protocol, which generally refers to the application layer protocol.

VI. Via

Via is used to indicate the agents and gateways through which request and response messages pass between the client and server, as well as the related intermediate protocols. For example, the request message of HTTP1.0 is sent to the agent AMagi A, which uses HTTP1.1 to forward the message to the gateway BMagie B. it is sent to the source server when the source server sees the Via header domain as Via:1.0A,1.1B.

7. Warning

Carry relevant warning messages, such as being used by proxies and gateways to warn the client of the expired status of the content received and that the editing format of the entity content of the client has changed.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report