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&param2=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

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -