Those things in the HTTP request header

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.