1. When a GET request is used, the parameter is displayed in the URL, but the POST method is not displayed, so the POST method is safer (same as Article 4 ).
2. For the get method, the server uses request. querystring to obtain the value of the variable. For the POST method, the server uses request. Form to obtain the submitted data. You can use request to obtain parameters in either of the two methods.
3. The data volume transmitted by get is small and cannot exceed 2 kb. The amount of data transmitted by post is large, which is generally not restricted by default. However, in theory, it varies with the server.
4. Low get security and high post security.
Note:
Get method: a URL contains all the information required to retrieve the request information. You can add the URL to the URL for future calls. The transmitted data is displayed in the address bar,
It is a batch stream transmission with limited data volume and Chinese garbled characters.
POST method: Package and send the data, encrypt the data, and ensure high security. There is no limit on the amount of data transmitted and cannot be added to bookmarks.
Differences between GET requests and post requests in Ajax