【计算机网络】HTTP的常用请求方法


请求 描述
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]).
  1. GET: Request data(including body)
  2. HEAD: This method is often used for testing hypertext links for validity, accessibility,and recent modification.
  3. POST: POST is designed to allow a unified method to overwrite specified items
  4. 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.

文章作者: MikeVane
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 MikeVane !
  目录