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