- Web Penetration Testing with Kali Linux(Third Edition)
- Gilberto Najera Gutierrez Juned Ahmed Ansari
- 232字
- 2021-06-24 18:44:51
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.
推薦閱讀
- Linux設備驅動開發詳解(第2版)
- 每天5分鐘玩轉Kubernetes
- SharePoint 2013 WCM Advanced Cookbook
- 高性能Linux服務器構建實戰:系統安全、故障排查、自動化運維與集群架構
- 嵌入式系統及其應用(第三版)
- Mastering Reactive JavaScript
- OpenStack系統架構設計實戰
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- 寫給架構師的Linux實踐:設計并實現基于Linux的IT解決方案
- Introduction to R for Quantitative Finance
- CentOS 6 Linux Server Cookbook
- 鴻蒙操作系統設計原理與架構
- OpenSolaris紅寶書
- Website Development with PyroCMS
- Azure Serverless Computing Cookbook