Is there a limit on the size of the data transmitted via POST?

6

I submitted a form via GET with a large number of text (about 6,000 characters) and received a very long URL error.

I did the same test via POST and the data was sent successfully.

My question is whether there is a data limit to be transmitted via POST, since GET I already know is limited.

    
asked by anonymous 11.07.2017 / 06:05

2 answers

6

In theory, the maximum limit of a post request is unlimited. The actual limit depends on each server application. Matthew has already given the hint how this can be set up in Linux environments (of which I do not understand anything).

For applications running on Microsoft IIS, you set the limit through the IIS dashboard or the web.config file of the application.

I will not dwell here on how to do these settings, but by documentation o default limit of requests is thirty million bytes (approximately 28.6MB ). The maximum configurable limit is 4,294,967,295 bytes, roughly 4GB .

Nodejs already works with a default limit of requests of 80KB (see the HTTP_MAX_HEADER_SIZE variable in source code ). Middlewares such as Connect allow you to set larger limits, but the configurable maximum limit will range from middleware to middleware.

    
11.07.2017 / 13:58
3

Depends on the server configuration. If you are working with PHP on a Linux or something similar you can control this by setting .htaccess

#Set o tamanho maximo de um post
php_value post_max_size 15M

But if you're using IIS, I have no idea how to do it.

Font

    
11.07.2017 / 10:39