One, what is the HTTP request header?
HTTP request headers, HTTP client programs (such as browsers) that send requests to the server must indicate the type of request (usually get or post). If necessary, the client program can also choose to send additional request headers.
What are the HTTP headers?
1, Request type: Our common request type has get and post two kinds of requests, and this information in the HTTP request message in the ground line is the request can be obtained;
2. Request address: The request address tells the server where the current request is coming from, for example, "/" means the root directory of the servers, for a static web site, if there is a index.html
It points to the Web page, and to a dynamic Web site, it points to the Web page if index.php exists.
3, the request parameter: the client and the server communication finally is to carry on to the concrete data transmission comes up, therefore through the request message we can obtain the client to pass the parameter
and handle it, usually the get type parameter is in the request line, and the post type parameter is in the body of the message.
4, Request constraint: We put 1, 2, 3 is the core elements of communication, then we can call it the details of the elements.
5. Request message:
The first part: request type, request parameter, request address;
The second part: The request header, here defines the fields such as Accept,acceptlanguage, which is what we call the request constraint here.
The third part, the message body, it is an optional content, and the second part has a blank line, when the Post type request, this will record the parameters passed by the client.
Cond......
Those things in the HTTP request header