I've got an application that sends relatively large POST requests to an Apache shared hosting.
On the server, there's a .php
file with
file_get_contents("php://input")
that's supposed to read the POST raw body. It works as long as the POST body is less than ~16000 characters in length. If there are more, the above piece of code returns an empty string.
I'd like to have the entire body returned, regardless of its length.
By default, it is said there's a
post_max_size = 64M
setting in the server'sphp.ini
. Setting it myself manually doesn't alleviate the issue.The client-side code always works properly. The Content-Length header is set correctly as well.
Sending the POST via a HTML form and accessing it with $_POST['content'] server-side behaves in the same exact way.