What is the difference between post and get in JavaScript?

Source: Internet
Author: User
Get if the request URL does not change, take out the cache, improve efficiency, the request will be cached in the browser, can be viewed through the history of user information, security is low;
Post transmission changes in data display, variable access;
Get Send data through URL address, the amount of data can not exceed 1024byte;
Post as the entity content of the HTTP message is transferred to the server, the amount of data can be transmitted very large;
Get transfer data is encodeuricomponent encoded to prevent garbled characters.
Get mode, the server side uses Request.QueryString to get the value of the variable;
Post mode, the server side uses Request.Form to obtain the submitted data;

What is the difference between post and get in JavaScript?

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.