Can I specify Http Request headers in a Run/Debug Configuration: PHP HTTP Request

Hi there,

I just discovered the Run/Debug configurations http://www.jetbrains.com/phpstorm/webhelp/run-debug-configuration-php-http-request.html
Woa, WAY cool..

The only problem is, I need to somehow specify the request headers, because my app is authenticating via a token in the header,
Is there a way to specify request headers in the Run/Debug Configurations?

1 comment

Hi there,

No.

But you can use REST Client ("Tools | Test RESTful Web Service") to assemble request with any headers you like. Just add xdebug trigger marker to that (either via cookie or GET/POST parameter .. or configure xdebug to attempt to debug every single request) and use Zero-Config approach (that phone handle icon) as described here: http://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm

http://stackoverflow.com/a/19147935/783119

2

Please sign in to leave a comment.