与服务器的连接异常终止 xmlhttp [英] the connection with the server was terminated abnormally xmlhttp

查看:24
本文介绍了与服务器的连接异常终止 xmlhttp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在与此 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆