Ajax get and post

Source: Internet
Author: User
The post and get methods have the following differences: 1. the POST method does not need to be shown in the URL when transmitting data, but the get method must be shown in the URL. 2. the size of post data transmission can reach 2 MB, while the get method can only transmit about 1024 bytes due to the limited URL length. 3. post, as its name implies, is to transfer data to the server segment, and get is to get data from the server segment. the reason why get can also transmit data is to design and tell the server what data you actually need. the post information is used as the content of the HTTP request, while get is transmitted in the HTTP header. Request. querystring ["strname"] request for receiving post. form ["strname"]: although the two submission methods can use request ("strname") to obtain the submitted data ProgramEfficiency is affected and is not recommended. In general, try to avoid using the get method to submit the form, because it may cause security problems.
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.