The HTTP protocol defines eight methods or "actions" to indicate different ways to manipulate the resources specified by the Request-uri.
The details are as follows:
OPTIONS: Returns the HTTP request method that the server supports for a specific resource. You can also test the functionality of your server with a request to send a ' * ' to the Web server.
HEAD: Ask the server for a response that is consistent with the GET request, except that the response body will not be returned. This method allows you to obtain meta information contained in the response message header without having to transmit the entire response content.
GET: A request is made to a specific resource.
POST: Submits data to the specified resource for processing requests (such as submitting a form or uploading a file). The data is included in the request body. A POST request may result in the creation of new resources and/or modification of existing resources.
PUT: Uploads its latest content to the specified resource location.
Delete: The request server deletes the resource identified by the Request-uri.
TRACE: Echo the request received by the server, primarily for testing or diagnostics.
The connect:http/1.1 protocol is reserved for proxy servers that can change connections to pipelines.
Although there are 8 ways to request HTTP, but we commonly used in the actual application of the Get and post, the other request methods can also be implemented in both ways indirectly.
Introduction to 8 types of requests for HTTP protocols