Difference between get and post

Source: Internet
Author: User

The get and post methods in Form correspond to

GET and POST methods.

The main differences between the two are as follows:

1) Get is used to obtain data from the server, while Post is used to transmit data to the server;

2) Get adds the data in the form of variable = value to

URL, and the two use "?" And each variable is connected with "&". Post

The data in the form is placed in the form data body and transmitted to the action according to the method corresponding to the variables and values.

URL;

3) Get is insecure because data is stored in the request URL during transmission; Post

All operations are invisible to users;

4) Get transmission has a small amount of data, mainly because it is restricted by the URL length, while Post can be transmitted.

A large amount of data, so only Post can be used to upload files;

5) Get restricts that the dataset of Form forms must be ASCII characters, while Post supports the entire iso000046

Character Set;

6) Get is the default Form method.

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.