HTTP detailed t...login
HTTP detailed tutorial
author:php.cn  update time:2022-04-11 13:41:55

HTTP request method


According to the HTTP standard, HTTP requests can use multiple request methods.

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

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

Serial numberMethodDescription
1GETRequest the specified page information and return the entity body.
2HEAD is similar to the get request, except that there is no specific content in the returned response, which is used to obtain the header
3POSTSubmit data to the specified resource to process the request (such as submitting a form or uploading a file). The data is included in the request body. POST requests may result in the creation of new resources and/or modification of existing resources.
4PUTThe data transmitted from the client to the server replaces the content of the specified document.
5DELETERequests the server to delete the specified page.
6CONNECTThe HTTP/1.1 protocol is reserved for proxy servers that can change the connection to a pipeline.
7OPTIONSAllows clients to view server performance.
8TRACEEcho the request received by the server, mainly used for testing or diagnosis.

php.cn