I have a script on my local server. This script sends through CURL (POST) some data compressed with gzip to a live server, which then decompresses it and saves it in a 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 the string is βuntouchedβ.
Two live servers are located in two different hosting companies, and they have different configurations, I suspect that this is the cause of my problem, but I'm not sure which part of the configuration is the cause. I tried with a small (compressed) line of 40 kb, so the runtime and memmory are not a problem. The POST size is 8 MB on both servers.
Does anyone know what the problem is?
source share