Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTTP request method


May 27, 2021 HTTP


Table of contents


HTTP request method

According to http standards, HTTP requests can use a variety of request methods.

HTTP1.0 defines three request methods: GET, POST, and HEAD.

HTTP1.1 adds five new request methods: OPTIONS, PUT, DELETE, TRACE, and CONNECT methods.

Serial number Method Describe
1 GET Request the specified page information and return the entity body.
2 HEAD Similar to a get request, except that there is no specific content in the returned response to get the header
3 POST Submit data to a specified resource for processing requests, such as submitting forms or uploading files. T he data is included in the request body. POST requests may result in the establishment of new resources and/or modifications to existing resources.
4 PUT The data transferred from the client to the server supersedes the contents of the specified document.
5 DELETE Ask the server to delete the specified page.
6 CONNECT The HTTP/1.1 protocol is reserved for proxy servers that can change connections to a pipeline.
7 OPTIONS Allows clients to view the performance of the server.
8 TRACE Echo requests received by the server, primarily for testing or diagnostics.