Difference between http Get and Post, difference between getpost

Source: Internet
Author: User

Difference between http Get and Post, difference between getpost
1. Get is a request to request data from the server, and Post is a request to submit data to the server;
2. get is to add the parameter data queue to the URL referred to by the action attribute of the submission form. The values correspond to each field in the form one by one and can be seen in the address bar. Post is implemented through the HTTP Post mechanism, place the fields in the form and their content in the body of the http package and send them to the URL address referred to by the action attribute. The parameter data cannot be seen in the address bar. 3. the size of data transmitted by Get is small and cannot exceed 2 kb. The size of data transmitted by Post is large and unrestricted (but theoretically, the maximum size of IIS4 is 80 KB, and that of IIs5 is KB); 4. the data submitted in Get mode, and the server uses Request. queryString is used to obtain the parameter value. The server uses the Post method and Request. form to obtain the value of the submitted parameter. 5. Get is less secure than Post, but the execution efficiency is higher than Post method. Suggestion: if the information contains confidential information, use the Post data submission method; when querying data, use the Get method; when adding, modifying, or deleting data, use the Post method.

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.