php - How to interpret CURL headers sent by user -
i creating api using laravel , apache backend. predicament this, when type curl command in terminal like,
curl -h "api key: nikapikey" --data "param1=value1¶m2=value2" http://localhost:8888/awesome-calendar/public/config
how read header api key in php backend? can read post parameters $_request.
answered @nogad
the function apache_request_headers acts var_dump http headers
http://php.net/manual/en/function.apache-request-headers.php
Comments
Post a Comment