{{HTTPSidebar}}
HTTP defines a set of request methods to indicate the desired action to be performed for a given resource. Although they can also be nouns, these requests methods are sometimes referred as HTTP verbs. Each of them implements a different semantic, but some common features are shared by a group of them: e.g. a request method can be {{glossary("safe")}}, {{glossary("idempotent")}}, or {{glossary("cacheable")}}.
GET- The
GETmethod requests a representation of the specified resource. Requests usingGETshould only retrieve data. HEAD- The
HEADmethod asks for a response identical to that of aGETrequest, but without the response body. POST- The
POSTmethod is used to submit an entity to the specified resource, often causing a change in state or side effects on the server. As described in the HTTP 1.1 specification: -
-
POST is designed to allow a uniform method to cover the following functions:
- Annotation of existing resources
- Posting a message to a bulletin board, newsgroup, mailing list, or similar group of articles;
- Providing a block of data, such as the result of submitting a form, to a data-handling process;
- Extending a database through an append operation.
-
- As an example, HTML Forms
POSTtheir content to their target resource. PUTDELETE- The
DELETEmethod deletes the specified resource. CONNECTOPTIONSTRACEPATCH
Browser compatibility
To contribute to this compatibility data, please write a pull request against this file: https://github.com/mdn/browser-compat-data/blob/master/http/methods.json.
{{Compat}}