I'm trying to use Postman and replicate the following POST request from this link:
All I seem to get from this is an empty string, which is not the same result I would see If I checked my Network tab from developer tools.
I'm wondering what do I need to do in order to get the same result. Change headers? Change payload format? What else could it be?
CodePudding user response:
The request works for me, what's the difference that depends. But the easiest way to find the correct answer is to import the request as is from the Developer Tools.
- Find the request on the request list and click
Copy as cURL (bash)
:
- Then on Postman click
Import
(top left main window) and select theRaw Text
option:
The request will be on the current window and you can just click Send:
So you can now diff your request with this one. There's a lot of headers so I would remove them one by one and see where the request fails. Without having the API at hand, this is really a trial-and-error exercise.
Hope this helps.