【发布时间】:2011-10-28 08:22:00
【问题描述】:
我有运行 iis7.5 的共享主机。
我想运行这段代码来显示另一个 url 的内容。
<%
url = "abc.com"
Response.Write(url)
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
Response.write xmlhttp.responseText
set xmlhttp = nothing
%>
这段代码在 IIS6 上完美运行,但是当我迁移到 IIS7 时,它在 'xmlhttp.send ""' 行上给了我operation timed out 的错误。表示无法建立连接。
我是否需要在 web.config 中进行一些更改才能运行此代码,或者是否有任何替代代码。
感谢您的帮助。
【问题讨论】:
标签: iis-7 asp-classic iis-7.5 serverxmlhttp