卷曲显示奇怪的错误消息

时间:2011-03-18 11:18:03

标签: curl asp-classic

当我尝试登录到以下网站时,我收到以下错误,我试图谷歌但没有出现。任何想法?

Microsoft VBScript runtime error '800a01a8'

Object required: 'XM_HTTPRequest'

/mobile/Components/CheckLogin_XM.asp, line 29

我正在使用以下卷曲脚本

$login_url = 'http://mobile.musicdock.com/mobile/default.asp';
$postdata = 'eMail=a2501853@jnxjn.com&Password=a6VcY7&Submitted=true&login=Login';
$cookie = '/temp/cookies.txt';

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $login_url);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_8; zh-cn) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27"); 
curl_setopt ($ch, CURLOPT_TIMEOUT, 15); 
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt ($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);
$html = curl_exec($ch);
curl_close($ch);

echo $html;

0 个答案:

没有答案