Part of request body received

December 11, 2015 735 views
Apache PHP CentOS

Hello,

We have one very frustrating issue when posting a request with compressed body to our PHP script.

If we don't use compression everything is ok, but when we compress the body and put header "Content-Encoding: gzip" then only a part of the request is received in the script and therefore generates error. Usually our requests uncompressed are approximately 220K (46K compressed) and we receive approximately 180K in the script. maxpostsize in php.ini is 8MB so this is not an issue. We have verified that the whole data package is received on network level therefore the problem is in Apache or it's deflate module.

The same script runs without any issues for 3+ years on our old server and therefore it is tested enough. I thought it's maybe a problematic distribution and we made a second droplet with a different distribution but the same problem persists.

That's why I am writing here to ask you if you can help us to resolve it.

Looking forward to hear from you.

Thanks,
Antony

1 comment
  • For anyone who has the same issue:
    We just make a droplet with the latest PHP version 5.6 and the script starts working properly.
    It seems the problem was connected with older PHP version.

1 Answer

This question was answered by @tonystoyanov:

For anyone who has the same issue:
We just make a droplet with the latest PHP version 5.6 and the script starts working properly.
It seems the problem was connected with older PHP version.

View the original comment

Have another answer? Share your knowledge.