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

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

java - ConcurrentModificationException upon committing transaction with Hibernate -