"Graphic http" chapter III reading notes

Source: Internet
Author: User

Chapter III: HTTP messages in HTTP messages

The 1.HTTP communication process is the request message sent from the client to the server and the response message from the server to return the client .

The 2.HTTP message is a string literal that is used for HTTP protocol information interaction.

3.HTTP Message structure:

  first, the message header ;

①, request line (in Request message): Contains request method , request URI,http version , or status line (in response message): Contains HTTP version , response result status code , reason phrases ;

②, header field

  two, empty line (CR+LF);

  third, the entity body (optional).

  

The 6.HTTP message body is the entire message itself , and the entity body is the content of the request or response (the entity body can be encoded or compressed)

7. Chunked transfer encoding: The entity body is divided into multiple blocks , received and decoded by the client (browser), so that the browser gradually display the page .

8. Content negotiation mechanism: Depending on the header field in the request message , the server side returns the most appropriate resource , such as the English or Chinese version of the page, back to the PC page or mobile version of the page.

"Graphic http" chapter III reading notes

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.