按键盘手指磨破皮2017-09-17 20:53:11
apache_request_headers 関数を使用して取得します (例:
$headers = apache_request_headers(); foreach ($headers as $header => $value) { echo "$header: $value <br />\n"; } 获取到的信息就是 Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 Host: www.example.com Connection: Keep-Alive