Introduction to 8 types of requests for HTTP protocols

Source: Internet
Author: User

The HTTP protocol defines eight methods or "actions" to indicate different ways to manipulate the resources specified by the Request-uri.

The details are as follows:

OPTIONS: Returns the HTTP request method that the server supports for a specific resource. You can also test the functionality of your server with a request to send a ' * ' to the Web server.

HEAD: Ask the server for a response that is consistent with the GET request, except that the response body will not be returned. This method allows you to obtain meta information contained in the response message header without having to transmit the entire response content.

GET: A request is made to a specific resource.

POST: Submits data to the specified resource for processing requests (such as submitting a form or uploading a file). The data is included in the request body. A POST request may result in the creation of new resources and/or modification of existing resources.

PUT: Uploads its latest content to the specified resource location.

Delete: The request server deletes the resource identified by the Request-uri.

TRACE: Echo the request received by the server, primarily for testing or diagnostics.

The connect:http/1.1 protocol is reserved for proxy servers that can change connections to pipelines.

Although there are 8 ways to request HTTP, but we commonly used in the actual application of the Get and post, the other request methods can also be implemented in both ways indirectly.

Introduction to 8 types of requests for HTTP protocols

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.