Latest web development tutorials

HTTP request method

According to the HTTP standard, HTTP request methods you can use a variety of requests.

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

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

No. method description
1 GET Page information specified by the request and returns the entity body.
2 HEAD Get similar requests, responses, only returned no specific content for acquiring header
3 POST Submitting data to the specified resource for processing a request (such as submitting a form or uploading files). Data is included in the request body. POST requests may lead to the establishment and / or existing resources to new resource changes.
4 PUT Data transmitted from the client to the server, replace the specified content of the document.
5 DELETE Requests the server to delete the specified page.
6 CONNECT HTTP / 1.1 protocol reserved to be able to connect to the pipeline mode proxy server.
7 OPTIONS It allows clients to view the performance of the server.
8 TRACE Echo request received by the server, mainly for testing or diagnostics.