官术网_书友最值得收藏!

The request header

Here is an HTTP request captured using a web application proxy when browsing to www.bing.com:

The first line in this header indicates the method of the request: GET, the resource requested: / (that is, the root directory) and the protocol version: HTTP 1.1. There are several other fields that can be in an HTTP header. We will discuss the most relevant fields:

  • Host: This specifies the host and port number of the resource being requested. A web server may contain more than one site, or it may contain technologies such as shared hosting or load balancing. This parameter is used to distinguish between different sites/applications served by the same infrastructure.
  • User-Agent: This field is used by the server to identify the type of client (that is, web browser) which will receive the information. It is useful for developers in that the response can be adapted according to the user's configuration, as not all features in the HTTP protocol and in web development languages will be compatible with all browsers.
  • Cookie: Cookies are temporary values exchanged between the client and server and used, among other reasons, to keep session information.
  • Content-Type: This indicates to the server the media type contained within the request's body.
  • Authorization: HTTP allows for per-request client authentication through this parameter. There are multiple modes of authenticating, with the most common being Basic, Digest, NTLM, and Bearer.
主站蜘蛛池模板: 鄂州市| 息烽县| 宝应县| 分宜县| 石屏县| 长岭县| 泗阳县| 诏安县| 松阳县| 茂名市| 辽宁省| 连云港市| 共和县| 呼和浩特市| 濉溪县| 神池县| 云龙县| 辽阳县| 潮安县| 巩留县| 乐安县| 平昌县| 南城县| 泰州市| 马山县| 蛟河市| 东明县| 义乌市| 望都县| 高州市| 沙湾县| 濮阳县| 石嘴山市| 大厂| 宜兰县| 昌图县| 旺苍县| 洪泽县| 湘西| 乌苏市| 游戏|