发送HTTP标头不会出现在$ _SERVER中

I try sending custom HTTP header from Postman but the server doesn't recognize it in

isset($_SERVER["HTTP_AUTH_TOKEN"] 

returns false, also I tried

var_dump($_SERVER)

and my parameter isn't there

However, it works fine on localhost, but it won't work when I upload it on godaddy hosting for example?

The suggested solution doesn't work for me..

Try this one:

$headers = apache_request_headers();        
$headers['HTTP_AUTH_TOKEN'];

It worked for me.

I have found the solution.

The problem was in adding extra _ symbol in the header variable, worked fine when I set the variable with no _ symbol..