Hi, I want use following HMAC REST api powered by phalcon : https://github.com/jeteokeeffe/php-hmac-rest-api
I have confuse about getting header values with below command , I'm set custom header like API_ID, ... but following code return NULL!
$app->request->getHeader('API_ID');
Also I check this method for fetch all header values :
$app->request->getHeaders();
Result :
array (
'Accept' => '*/*',
'Content-Length' => '0',
'Content-Type' => 'application/x-www-form-urlencoded; charset=windows-1256',
'Host' => 'localhost',
'Connection' => 'Keep-Alive',
'User-Agent' => 'Apache-HttpClient/4.3.6 (java 1.5)',
'Accept-Encoding' => 'gzip,deflate',
)
Also I get all header values using getallheaders() native PHP function Result :
array (
'Accept' => '*/*',
'API_ID' => '110',
'API_TIME' => '145215523',
'API_HASH' => 'sadsdadt5verwervearevaerv4ae4r5ea4rva',
'Content-Length' => '0',
'Content-Type' => 'application/x-www-form-urlencoded; charset=windows-1256',
'Host' => 'localhost',
'Connection' => 'Keep-Alive',
'User-Agent' => 'Apache-HttpClient/4.3.6 (java 1.5)',
'Accept-Encoding' => 'gzip,deflate',
)
What happend to my custom value in header?
Thanks.