请求 | 描述 |
---|---|
OPTIONS | The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI. |
GET | The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. |
HEAD | The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. |
POST | The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line. |
PUT | The PUT method requests that the enclosed entity be stored under the supplied Request-URI. |
DELETE | The DELETE method requests that the origin server delete the resource identified by the Request-URI. |
TRACE | The TRACE method is used to invoke a remote, application-layer loopback of the request message. |
CONNECT | This specification reserves the method name CONNECT for use with a proxy that can dynamically switch to being a tunnel (e.g. SSL tunneling [44]). |
- GET: Request data(including body)
- HEAD: This method is often used for testing hypertext links for validity, accessibility,and recent modification.
- POST: POST is designed to allow a unified method to overwrite specified items
- PUT: If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a modified version of the one residing on the origin server.