<?php
foreach (getallheaders() as $name => $value) {
echo "$name: $value".'<br>';
}
?>
Host: localhost
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36
Referer: http://localhost/phpstrom/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6
Cookie: scy__Session=jhb5sq226vfertokf7gjaodue5; PHPSESSID=rhvgk6kookic5ulc965ghn4ap1