Differences in how get and post requests are in HTTP

Source: Internet
Author: User

1, in form form, if the request method is not specified, the default is a GET request;

2,get request is to obtain data from the server, and post is to send data to the server;

In the URL of the 3,get request, the data for the GET request is appended to the URL. The data of the POST request is encapsulated in the HTTP packet;

The 4,get request is cached by default;

5, in theory, the GET request has a length limit, the limit length is 1024 bytes, and theoretically the POST request is no length limit;

6, according to the HTTP specification get request is secure, idempotent, and the GET request is a request that can modify resources on the server.

The 7,get generates a TCP packet when the data is requested, and the post generates 2 TCP packets.

Differences in how get and post requests are in HTTP

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.