$headers = getallheaders(); foreach($headers as $key => $value){ if($key == "X-Auth-Signature"){ $authorization = $value; } }