HTTP request of Postman

Source: Internet
Author: User
Tags html form

    • HTTP messages are the way that data is exchanged between the server and the client
    • There are two types of messages:
      • Request----------sent by the client to trigger an action on a server
      • Response----------reply from the server
    • Parameter document: Https://developer.mozilla.org/zh-CN/docs/Web/HTTP (Web technical document →HTTP)
    • The composition of the HTTP request: Start line, Headers, body three part

  

The start line consists mainly of 3 elements: 1, an HTTP method, a verb (such as get, put, or post) or a noun (such as head or options) that describes the action to be performed. Shown: request Method:get;2, requesting destination (requests URL): Through is a URL, or is the absolute path of the protocol, port and domain name, 3, HTTP version, defines the structure of the remaining messages as an indicator of the desired response version; 4, Remote Address: The remote address of the request, 5, Referrer Policy (used to filter the contents of the Referrer header): The Referrer header is not passed when a demotion occurs, such as from https://to/HTTP.

Headers are primarily used to configure some parameters to improve performance and reduce server load. Very flexible, strong extensibility.

Body not necessarily all requests, general, DELETE, options do not need body, only the data sent to the server in order to update the data will require body, common is the POST request (contains HTML form data).

  

HTTP request of Postman

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.