Tuesday, 24 November 2015

HTTP verbs

Many developers still don't know what is Http verb and how many of them are there and what is its actual use how web server treats them differently.

For Http 1.1

  • Get - Retrieves the information identified by URI
  • Head - Retrieves the message headers for information identified by URI.
  • Put - Stores the enclosed entity under the request URI.
  • Post - Post a new entity enclosed in the request.
  • Delete - Deletes the resource identified by URI.

Get and head are considered to be as safe methods becuase they are just meant for retrieval.

More detailed info can be found on W3C website

No comments:

Post a Comment