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