(1) HTTP protocol

 HTTP protocol is a hypertext transfer protocol, which is mainly responsible for communication between browsers and servers. The client browser and other requests are sent to the server through the HTTP protocol, and the server and other response pages are returned to the client.

 Features of HTTP protocol:

  (1) The HTTP protocol is a stateless protocol. - Therefore, the user's login status needs to be maintained through cookies and sessions.

  (2) The HTTP protocol is an application layer protocol, and the server needs to open a thread to process each HTTP request.

 HTTP sessions are all four steps:

  (1) The client and the server establish a TCP connection through a three-way handshake

  (2) The client sends a request to the server

  (3) The server sends a response to the client

  (4) Close the TCP connection.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325691339&siteId=291194637