$http_response_header

当使用 HTTP 包装器时, $http_response_header 将会被 HTTP 响应头信息填充。与使用 get_headers() 函数类似。

<?php

$data = file_get_contents('https://github.com/');
var_dump($http_response_header);

results matching ""

    No results matching ""