问题描述
我在与该Web服务相同的服务器(不同的网站)中拥有此ASP页面test1.asp.是当我尝试运行此代码时
I have this asp page test1.asp in the same server (different website) than this webservice. Thing is when i try to run this code
sUrl = "http://chat.xxxxx.com/UCWebServices/Chat.asmx/GetChatQueueByAddress?queueAddress=SALESCHAT"
result = HTTPPost(sUrl)
response.Write result
Function HTTPPost(sUrl)
set oHTTP = CreateObject("Msxml2.ServerXMLHTTP")
oHTTP.open "GET", sUrl,false
oHTTP.send <-- it fails here <-- it fails here <-- it fails here <--
if oHTTP.Status = 200 Then
HTTPPost oHTTP.responseText
End if
End Function
%>
我遇到以下错误
msxml3.dll错误'80072efe'
msxml3.dll error '80072efe'
与服务器的连接异常终止
The connection with the server was terminated abnormally
我搜索了这个问题,认为这可能是我可以轻松解决的一些小问题,但是我遇到了一些问题.使它工作并不容易.
i googled up this issue thinking that maybe this was some little bs i could easily solve, but i am getting into some problems. It's not easy to make it work.
如果我们在其他任何地方运行同一页面,那么它将起作用.
if we run the same page from anywhere else, then it works.
有什么想法吗?
推荐答案
此错误代码为ERROR_INTERNET_CONNECTION_ABORTED
.最常见的原因是防火墙或防病毒干扰了连接,代理使连接数据中断.我也可能是由于名称解析问题引起的-例如,如果主机名在本地解析为127.0.0.1,并且Web服务器仅绑定到公共IP地址.
This error code is ERROR_INTERNET_CONNECTION_ABORTED
. The most common reasons are a firewall or anti-virus interfering with the connection, a proxy borking the connection data. I can also be caused by a name resolution issue -- for example, if the host name resolves to 127.0.0.1 locally and the web server is bound to the public IP address only.
这篇关于与服务器的连接异常终止xmlhttp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!