Here is my ajax setup:
$.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)
{
}
});
If the data - hexstr
smaller than 4 chars (for example hex_str = "3A") I got the following error (after 1 minute of request pending):
XMLHttpRequest: Network Error 0x2f78, Could not complete the operation due to error 00002f78.
This happens only in IE, FF and Chrome can post any data size.
The data I send it's not in XML format it's only Hex data (I need the contentType: "text/xml; charset=utf-8"
for some other reason).
I'm using Jquery 1.8.2
I had the same problem,just put this line in your header,i hope it will work for you