摘要: test.phparray('header'=>"Referer:$refer\r\nHost: hiphotos.baidu.com\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0\r\n")); $context=stream_context_create($opt); return file_get_contents($url,false,$context); } ?>test1.php: //通过了头部处理可以访 阅读全文
posted @ 2014-03-27 09:49 jami918 阅读(310) 评论(0) 推荐(0) 编辑