采集下面页面的信息https://www.mysick.com/products/Default.aspx为何 file_get_contents 读不到信息
用cURL 实验也不行
这个页面的结构如何?如何可以采集到这个页面的信息?附:
<php?
$url="https://www.mysick.com/products/Default.aspx";
$contents;
$contents = file_get_contents($url);
echo $contents;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec($ch);
echo $result;
?>
用cURL 实验也不行
这个页面的结构如何?如何可以采集到这个页面的信息?附:
<php?
$url="https://www.mysick.com/products/Default.aspx";
$contents;
$contents = file_get_contents($url);
echo $contents;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec($ch);
echo $result;
?>
尝试了一下也没能弄到
添加了cookie 增加了 ssh支持...
我用的是curl.
http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/
同意楼上观点,https应该是需要数字证书的。