Am I getting a partial string when I send a compressed string via CURL?

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?

+4
source share
1 answer

wirehark is the way to go; he will show you what is happening on the wire.

0
source

Source: https://habr.com/ru/post/1433028/


All Articles