asp Server XML HTTP Object什么都不返回

时间:2015-10-15 19:36:52

标签: asp-classic

我是asp新手,但需要为朋友修复软件。问题是使用MSXML2.ServerXMLHTTP读取.asp页面以生成凭证的例程。我已经让它工作并显示来自任何服务器的页面,但当我尝试从我自己的Windows服务器打开一个页面时,例程只返回空白,或挂起服务器。尝试了一切。不知道它是否与权限相关?

似乎陷入了readyState = 1。

<%
  Response.Buffer = True
  Dim objXMLHTTP, xml

  Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")

  ' Opens the connection to the remote server.
  xml.Open "GET", "http://someurl/Testpage.asp", False

  ' Actually Sends the request and returns the data:
  xml.Send

  'Display the HTML both as HTML and as text
  Response.Write "<h1>The HTML text</h1><xmp>"
  Response.Write xml.responseText
  Response.Write "</xmp><p><hr><p><h1>The HTML Output</h1>"

  Response.Write xml.responseText


  Set xml = Nothing

%>

1 个答案:

答案 0 :(得分:0)

开发服务器对它可以同时处理的请求数量有一些限制 因为您正在执行一个服务器端脚本,所以服务器不会响应您通过ServerXMLHTTP发送的请求。

您可以通过在IIS管理器中查找开发网站的工作进程来解决此问题,并在高级设置下增加最大工作进程数,这可以设置为1。

相关问题