I do not know how common this trabl is, but I have taken a lot of time, so that no one else with him should have problems writing the following solution:Problem: MSIE6 displays the mysterious System Error-1072896658 (the numbers may be different) when accessing the responseText property of the XMLHttpRequest object.
Cause: Cannot parse response encoding.
Solution: We specify the encoding in the header of the server response explicitly. Moreover, “utf-8” without a hyphen, which is often given by the default server, he does not understand. Content-type does not matter.
')
Example header: Content-type: application / json; charset = utf-8
(application / json - for json, as per
rfc4627 )
By the way, when testing the XMLHttpRequest using FireBug, be careful, I have some scripts (I used
MooTools framework and synchronous requests) for some reason refused to work with FireBug. The essence of the problem did not penetrate. It was decided to change the MooTools ajax class to a samopny (lay out a bit later when I polish).
The bonus utility : file_get_contents ('php: // input') in PHP allows you to read the client's request in raw form, without encountering restrictions when working through $ _POST.
Learn more about PHP wrappers .