21,886
社区成员
发帖
与我相关
我的任务
分享
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"Host: style.china.alibaba.com\r\n" .
"Accept-language: zh-cn\r\n" .
"User-Agent: mozilla/5.0 (windows; u; windows nt 5.1; zh-cn; rv:1.9.2.3) gecko/20100401 firefox/3.6.3\r\n" .
"Accept: */*"
)
);
$context = stream_context_create($opts);
$url = "http://kslongmen.cn.alibaba.com/athena/contact/kslongmen.html";
echo file_get_contents($url, False, $context);