What is the difference between get mode and post mode in HTTP protocol transmission

Source: Internet
Author: User
Tags http request

HTTP supports a variety of request commands, with GET, put, DELETE, POST, head, most commonly used for get and POST, below to introduce the difference between the two methods.

One, Get way

Get mode The primary user comes with less parameter information because the got method parameter has a size limit of 1024 bytes (1k), the parameters are at the end of the URL, separated by the, and the parameters are separated by &, for example:

"Http://localhost:8080/manager/test.action?param1=123&param2=456",

When a get mode is transmitted, the parameter information is placed in the head of the HTTP request protocol:

Second, post mode

The most significant advantage of post mode relative to get mode is that there is no size limit, and the Post method transmits the parameter information in the entity part of the HTTP request protocol:

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.