I currently make requests to my webserver via ajax and get a response in an encrypted format.
The response text has a null character (0) and Internet Explorer is terminating the response on that character. FireFox and Chrome are able to see the entire response text.
I have tried sending the following headers from php:
header('Content-Type: application/octet-stream; charset=utf-8');
Example of response text:
I want to try and achive this without using urlencoding, as it expands the response unnecessarily.
Does anyone know any additional headers that I could send to make IE happy, or maybe headers in the ajax request?
Thanks all in advance.