I have a script on my local server. That script sends via CURL (POST) some data compressed with gzip to the live server which then uncompresses it and stores it in file.
Everything works when I send it to one live server, but on another live server, if I compress the string, I get only part of it. I tried to use encryption instead of compression and the problem is the same. It only works when string is "untouched".
The two live servers are at two different hosting companies and they have different configurations, I suspect that is the reason for my problem, but I'm not sure what part of the config the reason is. I tried with small (40 kb compressed) string, so execution time and memmory aren't the problem. POST size is 8MB on both servers.
Does anybody have any idea what the problem is?