The difference between "HTTP" POST and PUT method

Source: Internet
Author: User

1. POST is used to send data to the server, often used for form data submission;

PUT is used to store data in a resource (such as a file) on a server;

2.302 303 307 Status Code differences

They are both redirected (temporary redirect P.s 301 for permanent redirection) and have subtle differences,

http1.0: Only 302 yards, no 303 and 307 status codes;

http1.1:302,303,307

302:http/1.0 and http/1.1 behave the same (usually for GET)

303:post Redirect to get-allows the response of the POST request to redirect the client to a resource.

307: You need to ask the user whether the Post method should be initiated on the new URI, that is, 307 will not convert the post to get

The difference between "HTTP" POST and PUT 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.