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. max_post_size 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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.