我有运行 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 时,它operation timed out
在“xmlhttp.send ""”行出现错误。这意味着它无法建立连接。
我是否需要在 web.config 中进行一些更改才能运行此代码,或者是否有任何替代代码。
谢谢你的帮助。