I went on a trip to make apache_request_headers () work on my server. I upgraded to the latest version of PHP 5.4 and changed my PHP handler to FastCGI, as this allows you to run the apache_request_headers () function. I would prefer not to run PHP as an apache module due to permission problems.
Everything works fine with my new setup, but the only problem is that apache_request_headers () doesn't seem to pick up the "Authorization" header that I need for my OAuth 2 server.
The title I am posting is:
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
However, if I send the following header (or something other than "Authorization"), it works:
X-Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Frustrated ... Any ideas on how I can make this work?
source share