The difference summary _javascript skill of Ajax request get and Post

Source: Internet
Author: User

Get if the request URL does not change, take out the cache, improve efficiency; The request is cached in the browser, the user information can be viewed through the history record, the security is low;

Post transmission changes in data display, variable access;

Get through the URL address data transmission, the amount of data can not exceed 1024byte;

Post as the entity content of HTTP messages to the server, the amount of data transfer can be very large;

Get transmit data to pass encodeURIComponent code, prevent garbled.

Get way, the server end uses Request.QueryString to obtain the value of the variable;

Post mode, the server end uses Request.Form to obtain the submitted data;

The parameters of both methods can be obtained by request.

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.