Postman sends post requests in other scenarios
Here are some other scenarios for post requests. This time I use postman official API test site to explain to you.
Sending JSON Data
Upload a file
Set the Cookie request header
- You can copy cookie information in debug mode of Chrome or Firefox
- Cookie information is displayed in Fiddler’s or Charles’s request blocker either way. You only need to ask once to get it.
Setting authentication information
I don’t use that much, so I’ll write it out for those who might.
summary
Today I talked about the four types of POST requests in detail. Common POST requests have a combination of these types. When responding to an error, you need to pay special attention to the header and Body types. A lot of times because of a careless setting, and lost a lot of time.
Series of entrance