创建Microsoft.xmlhttp或Msxml2.ServerXMLHTTP对象服务器都无法获取自己本地IIS运行出来的网页内容代码

<%
Function getHTTPPage()
dim http
set http=Server.createobject("Msxml2.ServerXMLHTTP")
Http.open "GET","http://127.0.0.1/test.html",false
Http.send()
if Http.readystate<>4 then

More...

使用MSXML2.ServerXMLHTTP发送数据,有超时功能

Msxml2.XMLHTTP发送没有超时的,这样发送会把IIS搞死,改用MSXML2.ServerXMLHTTP加上超时的,就OK了。

 

...

More...

测试空间是否支持XMLHTTP组件

 <%

On Error Resume Next
Response.Write "<h3>服务XmlHttp组件支持情况:</h3>"
oxml=array("Msxml2.ServerXMLHTTP.6.0","Msxml2.ServerXMLHTTP.5.0","Msxml2.ServerXMLHTTP.4.0","Msxml2.ServerXMLHTTP.3.0","Msxml2.ServerXMLHTTP","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP")

More...