//获得服务器的参数
include ("application/libraries/LIB_http.php");
//定义目标和参照页
$target="http://www.schrenk.com/publications.php";//定义抓取下载的档案
$ref="http://www.schrenk.com";//引用的参照(因为网站不允许外链偷网,所以要引用一个参照)
//请求的http header
$return_arrry=http_header($target,$ref);
//显示标头
echo "
<
pre>";
echo "FILE CONTENTS \n";
var_dump($return_arrry['FILE']);
echo "ERRORS \n";
var_dump($return_arrry['ERROR']);
echo "STATUS ";
var_dump($return_arrry['STATUS']);
echo "
";
?>
输出