Hellow!
There is a problem: php sends data compressed with gzdeflate():
$string=gzdeflate($string,9);
echo $string;
In the browser pako.js is included and the following runs:
var rsp=rst.responseText;
rsp=pako.inflate(rsp);
But the console says: "Uncaught unknown compression method".
(The ajax code works well without compression and pako.inflate.)
If I use base64_encode()
$string=base64_encode($string);
or use gzdeflate() instead of gzencode(), I have the same problem.
How to unpack the gzip data in javascript?
Thank you in advance.