HTTP请求method(HTTP Request Method)共有15种,根据HTTP标准,HTTP请求可以使用多种请求方法。 HTTP1.0定义了三种请求方法: GET, POST 和 HEAD方法。HTTP1.1新增了五种请求方法:OPTIONS, PUT, DELETE, TRACE 和 CONNECT 方法。
| serial number | 方法 | describe |
|---|---|---|
| 1 | GET | Requests the specified page information and returns the entity body. |
| 2 | HEAD | Similar to a get request, except that there is no specific content in the returned response, used to obtain headers |
| 3 | POST | Submit data to the specified resource to process the request (such as 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 | The data transferred from the client to the server replaces the contents of the specified document. |
| 5 | DELETE | Requests the server to delete the specified page. |
| 6 | CONNECT | The HTTP/1.1 protocol is reserved for proxy servers that can change connections to pipelines. |
| 7 | OPTIONS | Allows clients to view server performance. |
| 8 | TRACE | Echo requests received by the server, mainly used for testing or diagnostics. |
| 9 | PATCH | The entity contains a table that describes the differences from the original content represented by the URI. |
| 10 | MOVE | Requests the server to move the specified page to another network address. |
| 11 | COPY | Requests the server to copy the specified page to another network address. |
| 12 | LINK | Request the server to establish a link relationship. |
| 13 | UNLINK | Break the link relationship. |
| 14 | WRAPPED | Allows clients to send encapsulated requests. |
| 15 | Extension-mothed | Additional methods can be added without changing the protocol. |