HTTP protocol Summary

Source: Internet
Author: User

The HTTP protocol is used for communication between the client and the server.

The HTTP protocol specifies that the request is made from the client and the last server-side response should be requested and returned.

The request message is composed of the request method , the request URL, the protocol version and the optional Request header field and the content entity , as shown in:

The response message is basically a protocol version , a status code (a numeric code indicating the success or failure of a request), a reason phrase that explains the status code , an optional response header field , and the entity body composition

HTTP is a non-persisted state, which is a stateless protocol. The HTTP protocol itself does not save the communication state between the request and the response, that is, the protocol does not persist for the sent requests and responses.

Using the HTTP protocol, the Protocol itself does not retain all of the previous request and response message information, in order to process a large number of transactions faster, to ensure the scalability of the Protocol, and specifically the HTTP protocol is designed so simple

HTTP is a stateless protocol, but in order to achieve the desired state of the function, so the introduction of cookie technology, with a cookie and then communicate with the HTTP protocol, you can manage the state.

Here's an HTTP method to tell the server intent: The interview will focus on

Get: Get Resources

The Get method is used to request access to a resource that has been identified by the URL. The specified resource returns the response content after the server-side resolution . If the requested text is returned as is, and if it is a program, it returns the output after execution.

HTTP protocol Summary

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.