In HTTP, The get, post, put, and delect Methods correspond to query, modify, add, and delete methods. Get is generally used to obtain or query resources, and post is generally used to update resources. According to HTTP specification 1. Get will not modify information, but will only query information. 2. Post can modify resource information. In actual operations, the get and post methods can be used to query, modify, add, and delete resources. Many users directly use the get method to update resources without performing HTTP operations, because the POST method must use from, it will be more troublesome to see the difference between get and post: 1. data Location (1) the GET request data appears in the URL (HTTP header? Splits the URL and transmitted data. parameters are connected with each other. English letters/numbers, sent as is, with spaces, converted to %, Chinese/other characters, and strings are encrypted using base64. % XX indicates that XX is a hexadecimal number. (2) Post places the submitted data in the http package body. 2. data Length limit (1) is limited by the browser. ie limits the URL length to 2083 bytes. other browsers are theoretically unlimited. The limit depends on the operating system. (2) There is no data limit in post theory. The limit depends on the server's processing capability. (3) iis6.0, Microsoft has increased its restrictions for security considerations. The maximum ASP post data size is kb, and the maximum size of each form field is kb. By default, the maximum size of uploaded files is 4 MB. The default maximum request header is 16 kb. Iis6.0 has no restrictions. 3. security (1) Get submits data in plaintext mode. account and password are displayed in plaintext on the URL. The logon page may be cached by the browser. Others can view the browser's historical records, you can easily get your account and PW, or cross-site attacks. * The above is just a lite version made by referring to other people's information.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service