Maximum body size of a POST request

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 gigantic) and I get to send more or less 30 records per request. My question is, is there a maximum amount of data I can send via POST?

    
asked by anonymous 02.08.2017 / 13:31

1 answer

2

The answer is simple, it exists. Using the command phpinfo you can get this information. The relevant fields of phpinfo about sending data would be the following:

Accordingto PHP documentation , there are explanations about each setting:

  

max_file_uploads (integer)
  The maximum number of concurrent files during an upload. As of PHP 5.3.4, the blank fields of files are not counted for this limit.

  

max_input_nesting_level (integer)
  Set the maximum depth of input variable levels ($ _GET, $ _POST).

  

max_input_time (integer)
  Sets the maximum time, in seconds, that a script is allowed to spend interpreting input data, such as GET and POST . The timer starts when PHP is called by the server and ends when execution starts.

  

max_input_vars (integer)
  Configures how many input variables will be accepted, with the limit applied to each global super $_GET , $_POST and $_COOKIE separately). Using this policy mitigates the possibility of denial-of-service attacks that use hash collisions. If there are more variables than specified in this directive a E_WARNING is posted, and additional input variables are ignored.

  

memory_limit (integer)
  Sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent bad written 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 upload of files. To receive upload of large files, this value must be greater than upload_max_filesize . In general,% w_ of% must be greater than% w_ of%. When a memory_limit is used, the value is measured in post_max_size . The abridged notation, as described in this FAQ, can also be used. If the posted data is greater than% with% then the superglobal variables integer and bytes will be empty. This can be seen in a number of ways, for example, by including a variable in post_max_size when calling $_POST (calling $_FILES ), then checking if array $_GET is populated.

  

upload_max_filesize (integer)
  The maximum size of an uploaded file.

These values can be set to script . If they are commented, just remove the comment and set the desired value.

    
02.08.2017 / 13:52