HTTP Request Method

Source: Internet
Author: User

HTTP supports not only post and get methods, but also options, delete, head, put, Trace, connect, and other methods,

 

Here are some introductions:

Http://tinyliu.info/2011/01/get/

Http://tinyliu.info/2011/01/post/

Http://tinyliu.info/2011/01/put/

Http://tinyliu.info/2011/01/head/

Http://tinyliu.info/2011/01/options/

 

 

This statement also describes idempotent methods for HTTP request operations,Idempotence means that no matter how many operations are performed, the results are the same. Put, get, and delete are idempotent, and post is not.

 

For more information, see

 

Http://macrochen.iteye.com/blog/678683

 

 

 

Generally, get, put, delete, and post methods are used in the rest method.

 

 

In tornado, the reserved

 

DefGet (self, * ARGs ,**Kwargs ):RaiseHttperror( 405)DefPost (self, * ARGs ,**Kwargs ):RaiseHttperror( 405)DefDelete (self, * ARGs ,**Kwargs ):RaiseHttperror( 405)DefPut (self, * ARGs ,**Kwargs ):RaiseHttperror (1, 405)

 

Therefore, the above four methods are supported.

 

 

therefore, in the CRUD operation, a new content is usually added using post, and the content is updated using put. Delete and get are unnecessary.

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.