Trying to get the header authorization key in controller for making an API. Request is making from fiddler.
$headers = apache_request_headers();
$header包含一个array.
Array
(
[User-Agent] => Fiddler
[Host] => localhost:8000
[Content-Length] => 102
[Authorization] => TestKey
)
If am trying like this to fetch the Authorization , its throwing error.
$header['Authorization]
Error :
Undefined index: Authorization
我试了很多方法来获得授权,但都没有效果.有什么办法可以拿到这个吗?