HTTP: post and get the difference in the Request

* The main difference between GET and POST

  1, GET data is acquired from the server, POST data is transmitted to the server.

  2, at the client, the GET parameter data queue is added to the ACTION attribute of a form submission URL referred to in the various fields and values ​​within the form-one correspondence can be seen in the URL. post through HTTP post mechanism to various fields with its contents is placed in a form HTML HEADER URL address transmitted with the ACTION attribute refers. Users do not see this process.

  3, for the GET method, the server acquires the value of the variable with Request.QueryString, for POST method, the server acquires data submitted by Request.Form.

  4, the amount of data transferred get smaller, not larger than 2KB. Post large amount of data transmission, typically default to unlimited. But in theory, IIS4 the maximum amount of 80KB, IIS5 for 100KB.

  5, security issues: get security is very low, post high security. As mentioned in 2, when using the GET, the parameters will be displayed in the address bar, and POST will not. So, if these data are Chinese data and non-sensitive data, then use the GET; if the user input data is not Chinese characters and contain sensitive data, or use POST as well.

Guess you like

Origin www.cnblogs.com/qqmb/p/11165592.html