Knowledge Pills
How do I send POST requests?
Send POST requests as usual with your chosen language. ZenRows will transparently forward the data to the target site.
Before trying on your target site, we recommend using a testing site like httpbin.io to see if the parameters are sent correctly.
And why would you need to test it? Because not all languages/tools work the same, you should check that the sent parameters and format are correct. Remember that, by default, browsers send content type as application/x-www-form-urlencoded
. But many sites will expect JSON content, for which you’ll need to add a customer header: Content-Type: application/json
.
Even if you write the same code, the result will depend on whether you add that header.