关于使用XMLHTTP读取远程数据的问题~~~~~~100分相送
源代码:
<%
dim url,http,strsource
url = "http://news.xinhuanet.com/sports/2004-09/16/content_1988943.htm"
Set http =CreateObject("Microsoft.XMLHTTP")
http.Open "get",url,False
http.SetRequestHeader "Content-Type","Charset=gb2312"
http.Send()
strsource = http.ResponseText
Set http = Nothing
Response.write Server.HTMLEncode(strsource)
%>
运行后的错误:
msxml3.dll 错误 '80070005'
拒绝访问。
/t.asp,行 7
也就是send这一行出错
--------------------------
应如何解决呢?在vbscript中取此页是没有问题的,只有在ASP中才会出现的,为什么?我的MSXML是4版本,用3的版本也是一样的~