当使用 HTTP 包装器时, $http_response_header 将会被 HTTP 响应头信息填充。与使用 get_headers() 函数类似。
$http_response_header
get_headers()
<?php $data = file_get_contents('https://github.com/'); var_dump($http_response_header);