What is the HTTP protocol

Concept:

Http: Hyper Text Transfer Protocol.

effect:

Let's think about a problem first. As shown in the figure below, the browser interacts with the server, but the browser may have multiple versions. How can we communicate normally. At this time, we need a general protocol. Everyone abides by this protocol, so the HTTP protocol was born.

The role of HTTP protocol is to standardize the data interaction between browser and server.

Interactive process of HTTP protocol:

HTTP protocol request format:

HTTP protocol request method:

The difference between get and post:

1. Get request parameters are directly displayed in the address bar, while post is not displayed in the address bar

2. The get method is not secure and the post method is not secure

3. Get request parameters are limited in length, and post has no limit

HTTP protocol response format:

Common response status codes on the server:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>