HTTP request Tool Postman usage considerations

Source: Internet
Author: User

Postman is a very handy tool for testing HTTP requests, encountered some "pits" during use, and recorded for reference.

POST request

  • The data in the body is only checked x-www-form-urlencoded regardless of the Content-type set in the header, the value Content-type when the request is sent is x-www-form-urlencoded
  • When Form-data is selected, the Content-type value defaults to Multipart/form-data and comes with boundary, so do not select headers in Content-type, and if you choose, To the background of the Content-type selected for the headers, but the data is form-data format, if the Multipart/form-data type in the headers selected Content-type, the data to the background will be error, Hint No boundary
  • Raw: If Content-type is not selected in headers, the Content-type value in headers will change synchronously when the value in the drop-down option in the raw right drop-down is content-type.

HTTP request Tool Postman usage considerations

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.