HTTP request Mode---GET request and POST request

Source: Internet
Author: User
Tags add time

<title>HTTP request Mode---GET request and POST request</title> 1. Get request, Get Server resource POST request, publish information to server
2. Get requests are limited in length and are not suitable for large amounts of data such as file transfers
3. Get request Address bar will appear, some security high use post, the request parameters to the information body
4. The browser usually stores data in the cache, if the same URL is accessed, the submission method is get, no more to the server to view the update data (can add time stamp to avoid caching),
If you want to see the updated data, use the post submission

5. The request parameter of the POST request does not appear in the Address bar, cannot join the bookmark, if some page is according to the request parameter to make the different page display, for example the forum inside the article publication, then
You must use the get tag.
6. A get operation is an idempotent operation (or idempotent operation), and the post operation is a non-idempotent operation. The get idempotent operation does not alter the server content, and the return result of multiple commits is the same. Post Submission
Used to change the submission of server content.

From for notes (Wiz)

HTTP request Mode---GET request and POST request

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.