php 请求url并且获取返回值 $opts = array('http'=>array('header' => "User-Agent:MyAgent/1.0\r\n"));$context = stream_context_create($opts);print(file_get_contents('url地址', false,$context)); PHP 2024-07-30 28 点赞 0 评论 42 浏览