Differences between GET requests and post requests in Ajax

Source: Internet
Author: User

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

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.