POST parameters are passed in request body
In which format do I need to pass them in PhpStorm REST CLIENT?
I tried
param=value param:value
Nothing works. Any help appreciated
In the Headers section of the Request tab (within the REST Client window), be sure to add a Content-Type
header and set it to application/x-www-form-urlencoded
.
When you do form submit in html this actually set the request header Content-Type
to application/x-www-form-urlencoded
or multipart/form-data
in case of the file upload then it will set the request body exactly same as the GET url parameters for example [email protected]&password=123123
.
So this should work with you:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With