This section is mainly for the HTTP1.1 version of the basic explanation
What the HTTP protocol can do:
HTTP protocol for communication between client and server
HTTP protocol Communication mode:
The HTTP protocol implements message communication based on a request-response approach. The client initiates a message request, and the server responds to the request, thus enabling message communication between the two parties.
The two concepts involved are requests and responses, which are represented in the HTTP protocol in the form of message request messages and response messages.
Request Message Characteristics:
Response message Characteristics:
Features of the HTTP protocol communication:
Locating resources by URI
Common HTTP methods:
The Get method is used to obtain a resource that has been identified by the URI. The specified resource returns the response content after being parsed by the server.
The Post method is used to transfer the entity body
The Put method is used to transfer files (because http/1.1 's own put method does not have a validation mechanism, anyone can upload files, there are security issues, so the Web site is not used much)
HTTP status Management:
The HTTP protocol is stateless, which means that the last communication information is not preserved. This is designed to handle a large number of transactions faster and to ensure the scalability of the Protocol. However, with the further development of the Internet, the stateless HTTP protocol has caused some business to be very difficult to deal with, and a cookie technology has been created to guarantee the state of communication. Thus implementing HTTP state management
HTTP1.1 new Features:
1, Support persistent connection (1), network traffic volume explosion, including a variety of pictures, video, audio resources; 2, before 1.1 each communication needs to establish a connection, the response speed is slow)
2, Pipeline of
Additions and explanations
1, client: When two computers use the HTTP protocol to achieve communication, on a communication line, request access to the text or images, such as one end of the resource (request to get the resources of the end)
2, the server: When two computers use the HTTP protocol to achieve communication, on a communication line, provide text or images, such as the end of the resource services (to provide one end of the resource service)
3. URL (Uniform Resource Locator): Locate the location of the resource (for example: http://www.cnblogs.com)
4. URI (Uniform Resource Identifier): identifies an Internet resource (such as: Http://i.cnblogs.com/EditPosts.txt, ftp://test/test.txt); URL is a subset of URLs
5. Cookie technology: Identify client status by writing cookie information in request and response messages
I have limited ability. If there is a mistake, look treatise
2017-10-08
In Changsha
Reading "Graphical http"-(Simple HTTP protocol)