lonelydog
2005-06-21 16:46:04 UTC
the following code using Microsoft.XMLHTTP hangs while trying connecting to
hotmail. It seems that readyState never change to COMPLETED(4), but remains
INTERACTIVE(3). Connecting to other websites works perfectly.
var xmlhttp;
function loadXMLDoc(url)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (xmlhttp)
{
xmlhttp.onreadystatechange=xmlhttpChange;
xmlhttp.open("GET",url,false);
xmlhttp.send();
}
WScript.Echo(xmlhttp.responseText);
}
loadXMLDoc("http://www.hotmail.com/");
hotmail. It seems that readyState never change to COMPLETED(4), but remains
INTERACTIVE(3). Connecting to other websites works perfectly.
var xmlhttp;
function loadXMLDoc(url)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (xmlhttp)
{
xmlhttp.onreadystatechange=xmlhttpChange;
xmlhttp.open("GET",url,false);
xmlhttp.send();
}
WScript.Echo(xmlhttp.responseText);
}
loadXMLDoc("http://www.hotmail.com/");