Requesting encrypted data in IE
Hi All,
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:
PHP Code:
header('Content-type: application/octet-stream');
header('Content-type: text/plain;charset=iso-8859-1');
header('Content-Type: application/octet-stream; charset=utf-8');
header('Content-Length: 97');
And the following header from Javascript:
Code:
http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
Example of response text:
Code:
P GBFVYXQ@
QVRTWQVV
VV
TPTQVGBA]CPFVGPWT
VTSV
WUVR
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.