HTTP protocol and http protocol details

Source: Internet
Author: User

HTTP protocol and http protocol details

HTTP protocol

Purpose: Describe the protocol for data transmission between the client and the server.

Full name: Hypertext Transfer Protocol

Common versions: 1.0 and 1.1

Stateless Protocol: The first access is irrelevant to the second access.

1.0 is a stateless protocol. Every time you access a service, you need to establish a network connection, which takes time.

1.1 you can send many requests and responses based on a network connection.

For example, <link> <script> automatically sends a request to the server.

HTTP protocol composition: request and response

Composition of the request:

Request Message line-the first line in the request part

Request Message Header-from the second line to the end of the first blank line

Request body-starting from the first blank line

Components:

Response line-located in the first line

Response Header-from the second row to the first empty row

Response body-starting from the first blank line

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.