How to pass POST parameters using PhpStorm REST CLIENT

Akhmed picture Akhmed · Mar 17, 2016 · Viewed 8.8k times · Source

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

Answer

Nate picture Nate · Mar 17, 2016

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.