1
I have an APP that sends data via POST to a WEBSERVICE.
The problem is that I have a BLOB field (the data inside it is giant) and I send about 30 records per request.
My question is, there is a maximum amount of data I can send via POST?
1
I have an APP that sends data via POST to a WEBSERVICE.
The problem is that I have a BLOB field (the data inside it is giant) and I send about 30 records per request.
My question is, there is a maximum amount of data I can send via POST?
2
The answer is simple, it exists. Using the command phpinfo
you can obtain this information. The relevant fields of phpinfo
about sending data, would be these below:
According to the PHP documentation, follows explanations about each configuration:
max_file_uploads (integer)
The maximum number of simultaneous files during an upload. As of PHP 5.3.4, blank fields of files are not counted for this limit.
max_input_nesting_level (integer)
Configure the maximum depth of levels of input variables ( $_GET, $_POST).
max_input_time (integer)
Sets the maximum time, in seconds, that ascript
is allowed to spend interpreting input data such asGET
andPOST
. The timer starts at the moment thePHP
is called by the server and ends when the execution starts.
max_input_vars (integer)
Configure how many input variables will be accepted, with the limit applied to each super global$_GET
,$_POST
and$_COOKIE
separately). The use of that Directive mitigates the possibility of denial of service attacks usinghash
. If there are more variables than specified in that DirectiveE_WARNING
is launched, and additional input variables are ignored.
memory_limit (integer)
Sets the maximum amount of memory in bytes that ascript
is allowed to allocate. This helps prevent bad scripts from consuming all available memory on the server. Note that to have no memory limit, set this directive to -1.
post_max_size (integer)
Sets the maximum size of the posted data. This setting also affects theupload
files. To receiveupload
of large files, this value needs to be greater thanupload_max_filesize
. By and largememory_limit
must be bigger thanpost_max_size
. When ainteger
is used, the value is measured inbytes
. The summary notation, as described in this FAQ, can also be used. If the posted data is larger thanpost_max_size
then the superglobal variables$_POST
and$_FILES
will be empty. This can be observed in several ways, for example by including a variable in thearray $_GET
when calling thescript
(call for<form action="edit.php?processed=1">
), then checking whether$_GET['processed']
is filled.
upload_max_filesize (integer)
The maximum size of a file sent.
These values can be set in the php.ini
. If commented, just remove the comment and set the desired value.
Browser other questions tagged apache http post
You are not signed in. Login or sign up in order to post.