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

GETRequests the specified page information and returns the entity body.
HEADSimilar to a get request, except that there is no specific content in the returned response, used to obtain headers
POSTSubmit 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.
PUTThe data transferred from the client to the server replaces the contents of the specified document.
DELETERequests the server to delete the specified page.
CONNECTHTTP/1.1 protocol is reserved for proxy servers that can change the connection to a pipeline.
OPTIONSAllows clients to view server performance.
TRACEEchoes requests received by the server, mainly used for testing or diagnosis.

Popular Recommendations

Home

Videos

Q&A