【发布时间】:2015-01-10 07:26:07
【问题描述】:
这是我的 ajax 设置:
$.support.cors = true;
$.ajax({
beforeSend: function ()
{
},
type: "POST",
url: "test.cgx",
data: hex_str,
dataType: "xml",
processData: false,
contentType: "text/xml; charset=utf-8",
success: function (msg)
{
},
error: function (msg)
{
}
});
如果数据 - hexstr 小于 4 个字符(例如 hex_str = "3A")我收到以下错误(请求待处理 1 分钟后):
XMLHttpRequest:网络错误 0x2f78,由于错误 00002f78 无法完成操作。
这种情况只发生在 IE、FF 和 Chrome 中可以发布任何大小的数据。
我发送的数据不是 XML 格式,它只是十六进制数据(出于其他原因,我需要 contentType: "text/xml; charset=utf-8")。
我使用的是 Jquery 1.8.2
【问题讨论】:
标签: jquery ajax internet-explorer post error-code