问题描述
我有一个HTA(微软HTML应用程序 - 只是一个离线HTML + JavaScript的应用程序),它使用标准的MS XMLHTTP COM对象( Microsoft.XMLHTTP
或 MSXML2.XMLHTTP
根据检测到的)通过JavaScript code版本的一些数据发送回服务器。
I have an HTA (Microsoft HTML application - just an offline HTML + JavaScript application) that is using the standard MS XMLHTTP COM object (Microsoft.XMLHTTP
or Msxml2.XMLHTTP
depending on version detected) via JavaScript code to send some data back to the server.
据返回状态code 0,这显然不是一个有效的HTTP状态code(则要根据官方规格是三位数)。 (顺便说一句,我试图拔掉网络连接,并得到了状态code 17003或什么的,我认为从大量的使用Google的意思是DNS服务器查找失败。)
It is returning status code 0. This is apparently not a valid HTTP status code (they should be three digits according to the official specification). (BTW, I tried unplugging the network connection and got status code 17003 or something, which I think from a lot of googling means "DNS server lookup failed".)
它工作正常,我和谁从不同的地点进行了测试其他一些人。不过,我已经将此交给客户,他们都:收到一个零HTTP状态code,和HTTP responseText的空白。该客户端已尝试从两个位置,但在他们的企业网络两者。
It works fine for me and some other people who have tested it from different locations. However, I have sent this over to the client and they have recieved an HTTP status code of zero, and the HTTP responseText is blank. The client has tried it from two locations but both within their corporate network.
这是一个HTTP POST到Internet(而不是一个文件:我的理解也将返回状态code 0成功的Mozilla下//请求)上的HTTP URL。我是pretty的肯定,这是一个失败的code,因为它应该返回一些确认为的responseText
,我们没有得到记录在数据库中的数据
This is an HTTP POST to an HTTP URL on the Internet (not a file:// request which I understand also would return status code 0 for success under Mozilla). I'm pretty sure this is a failure code as it should return some confirmation as the responseText
, and we are not getting the data recorded in the database.
推荐答案
我相信错误code表示的反应是空的,(因为被退回,即使没有头)。这意味着连接被接受,然后正常关闭(TCP FIN)。有一些事情,可能导致这一点,但根据关闭您的描述,某种形式的防火墙似乎是最有可能是罪魁祸首。
I believe the error code indicates that the response was empty, (as not even headers were returned). This means the connection was accepted and then closed gracefully (TCP FIN).There are a number of things which could cause this, but based off of your description, some form of firewall seems the most likely culprit.
这篇关于HTTP状态code 0 - 这是什么意思,在MS XMLHTTP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!