Common methods supported by Http

List the common methods of Http and specific explanations for reference

HTTP method description
GET(get) The client requests a named resource from the server
PUT(put) Store client data in server named resource (submit)
DELETE(delete) Remove named resources from the server
POST(post) Send client data to the server gateway application
HEAD(head) Send only the HTTP header in the named resource response

GET

Request a resource from the server

HEAD

Request a resource from the server 头部to understand the dimensional situation, check the response status code, test whether the resource has been modified, etc.

PUT

Write a file to the server, and let the server use the body of the request to create a new document named by the URL requested by the lock. If the URL already exists, replace it with the body. Generally, a user password is required to log in

POST

Usually used to support HTML forms, the data filled in the form is usually sent to the server, and then sent to other places by the server

TRACE

The client's request may modify the original HTTP request when passing through firewalls, proxies, and gateways. TRACE allows the client to see what it becomes when it finally sends the request to the server.

OPTIONS

Request the Web server to inform the various functions it supports, and ask the method supported by the server, so that the client can choose the best request method

DELETE

Request the server to delete the requested URL resource, there is no guarantee that the server will execute

Guess you like

Origin blog.csdn.net/rjszz1314/article/details/105189933