curl采集问题
curl如何采集到baidu的whois详细信息包括邮箱 电话等等,急求谢谢,我采集到的都是非详细的信息
function curl($whois_server,$domain){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $whois_server.":43");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "=".$domain."\r\n");
$whois = curl_exec ($ch);
return $whois;
}
echo "<pre>".curl("whois.internic.net","baidu.com")."</pre>";
echo "<br/>Enter<br/>";
echo "<pre>".curl("whois.markmonitor.com","baidu.com")."</pre>";
这样查不出来.... 谢谢 求原因