测试空间是否支持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")
 
for i=0 to ubound(oxml)
 
Set getxmlhttp = Server.CreateObject(oxml(i))
 
If Err Then
 
Err.Clear
 
Response.Write oxml(i)&"不支持<br/>"
 
else
 
Response.Write oxml(i)&" 支持<br/>"
 
end if
 
next
 
%>

评论

发表新评论

此内容将保密,不会被其他人看见。
点击刷新验证码
  • 可用的 UBB 标签:
  • 留言最长字数:1000。