由webserver阻止的file_get_contents http错误机器人

时间:2016-12-02 16:43:15

标签: php file-get-contents

<?php

$context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n')));
file_get_contents("http://capes.labymod.net/capes/e4314058-987e-41ee-93b0-33bebfe726a0",false,$context);

?>

不起作用。 capes.labymod.net阻止机器人。 PHP能解决这个问题吗?

0 个答案:

没有答案