The difference between Get and Post

The difference between Get and Post

  1. Get is to get data from the server, and post is to send data to the server.

  2. get is to add the parameter data queue to the URL pointed to by the ACTION attribute of the submitted form, and the value corresponds to each field in the form one-to-one, which can be seen in the URL. Post uses the HTTP post mechanism to place each field in the form and its content in the HTML HEADER and send it to the URL address pointed by the ACTION attribute. The user cannot see this process.

  3. 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.

  4. The amount of data transmitted by get is small and cannot be larger than 2KB. The amount of data transmitted by post is relatively large, and it is generally unrestricted by default. But in theory, the maximum amount is 80KB in IIS4 and 100KB in IIS5.

  5. The security of get is very low, and the security of post is relatively high.

Guess you like

Origin blog.csdn.net/qq_26705343/article/details/113943747