What is the difference between Get Post

HTTP defines different methods for interacting with the server. There are four common methods: GET, POST, PUT, and DELETE. Among them, GET and POST are the most commonly used.

GET is used to obtain resources, it only obtains and queries data, and does not modify the data of the server. From this point of view, it is safe. Since it is read, data for GET requests can be cached.

POST can send a modification request to the server to modify the data.

"GET is not as secure as POST, the length of the URL is limited when GET is requested, GET has no body but POST has a body", these are all requirements for browsers, when using HTTP as an interface for transmission, there are not so many rules and regulations Now, at this time, GET and POST are just two request methods in the HTTP protocol, and the HTTP protocol is an application layer protocol based on TCP/IP. Both GET and POST use the same transport layer protocol, so there is no the difference

Guess you like

Origin blog.csdn.net/qq_51402804/article/details/123729701