xmlhttp发送请求怎么带上session信息?
南飞雁 2003-09-08 05:21:48 我在一个已经通过验证的网页上,用xmlhttp去读取另外一个网页,但是取过来的却是验证画面。
function getXML(URL) {
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.Open("GET",URL, false);
try {
xmlhttp.Send();
var result = xmlhttp.status;
}catch(e) {
alert(e);
return(false);
}
if(result==200) {
return(bytes2BSTR(xmlhttp.responseBody));
}
}