HTTP request method
Translation results:
HTTP protocol is the abbreviation of Hyper Text Transfer Protocol, which is a transfer protocol used to transfer hypertext from the World Wide Web (WWW: World Wide Web) server to the local browser. .
HTTP is a communication protocol based on TCP/IP to transfer data (HTML files, image files, query results, etc.).
HTTP request methodsyntax
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.
HTTP request methodexample
GET | Requests the specified page information and returns the entity body. |
HEAD | Similar to a get request, except that there is no specific content in the returned response, used to obtain headers |
POST | Submit 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. |
PUT | The data transferred from the client to the server replaces the contents of the specified document. |
DELETE | Requests the server to delete the specified page. |
CONNECT | HTTP/1.1 protocol is reserved for proxy servers that can change the connection to a pipeline. |
OPTIONS | Allows clients to view server performance. |
TRACE | Echoes requests received by the server, mainly used for testing or diagnosis. |