HTTP 200 响应但没有有效内容?
我一直在研究发布到服务器时遇到的问题,特别是从返回的响应中打开 Word 文件时。
通过 JavaScript 的 XMLHttpRequest 对象用于使用 .open 和 .send 函数将数据从 Web 服务器发送回客户端计算机 - 响应文本中包含生成的 XML。
查看 Fiddler 后,此请求显示以下内容:
但是,您可以看到有红色符号,查看 Fiddler 文档这意味着"会话被客户端、Fiddler 或服务器。”。
此外,响应的标头似乎是正确的:
什么会导致上述行为?浏览器未显示任何可见的脚本错误 (IE8),并且我已确保 JavaScript 错误不会被抑制。查看 Fiddler 中的 TextView 过滤器,您可以看到 Word 数据、提及的字体和样式等。
感谢您的宝贵时间!
I've been looking into an issue i'm experiencing when posting to a server, specifically when opening a Word file from the returned response.
An XMLHttpRequest object via JavaScript is being used to send data back to the clients machine from the web server using the .open and .send functions - the responseText having the resultant XML within.
After looking in Fiddler this request shows the following:
However you can see there's the red symbol, looking at the Fiddler documentation this means that the "Session was aborted by the client, Fiddler, or the Server.".
Furthermore the header for the response appears to be correct:
What would cause the aforementioned behaviour? The browser is not displaying any visible script errors (IE8) and i've made sure that JavaScript errors are not supressed. Looking at the TextView filter in Fiddler you can see the Word data, mentions of Fonts and styles etc.
Thanks for your time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该问题似乎是由于 MXSML .DLL 注册错误造成的,重新注册有问题的 DLL 后功能已恢复。
It appears the issue was due to a mis-registered MXSML .DLL, after re-registering the DLL in question functionality was restored.