Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Part of request body received
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.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×