HTTP Request Methods
According to the HTTP standard, HTTP requests can use various request methods.
HTTP1.0 defines three request methods: GET, POST, and HEAD methods.
HTTP1.1 adds six more request methods: OPTIONS, PUT, PATCH, DELETE, TRACE, and CONNECT methods.
| Number | Method | Description |
|---|---|---|
| 1 | GET | Requests specified page information and returns the entity body. |
| 2 | HEAD | Similar to a GET request, but the response does not include the actual content, used to obtain headers. |
| 3 | POST | Submits data to the specified resource for processing requests (e.g., submitting a form or uploading a file). The data is included in the request body. POST requests may result in the creation of new resources and/or modification of existing resources. |
| 4 | PUT | Replaces the data sent from the client with the specified document's content on the server. |
| 5 | DELETE | Requests the server to delete the specified page. |
| 6 | CONNECT | Reserved in the HTTP/1.1 protocol for enabling connection to be turned into a tunnel by an proxy server. |
| 7 | OPTIONS | Allows the client to view the server's capabilities. |
| 8 | TRACE | Echoes the request received by the server, primarily used for testing or diagnostics. |
| 9 | PATCH | Complements the PUT method, used for partial updates of known resources. |