{{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
GET
method requests a representation of the specified resource. Requests usingGET
should only retrieve data. HEAD
- The
HEAD
method asks for a response identical to that of aGET
request, but without the response body. POST
- The
POST
method 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
POST
their content to their target resource. PUT
DELETE
- The
DELETE
method deletes the specified resource. CONNECT
OPTIONS
TRACE
PATCH
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}}