Is there a size limit for data transmitted via POST?

Asked

Viewed 3,578 times

8

I sent 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 successfully sent.

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

  • 1

    Related, if not duplicated: https://answall.com/questions/47145/quantidade-m%C3%A1xima-de-elementos-enviado-por-um-formul%C3%A1rio

  • Friend, before posting a question, make sure it no longer has here on strackoverflow, searching for keywords in the field of search, ex post limit

  • Related also, if not duplicated: Problem with very large URL

  • Possible duplicate of Problem with very large URL

2 answers

7


In theory the maximum limit of a post request is unlimited. The actual limit depends on each server application. Matthew has hinted at how this can be configured in Linux environments (of which I understand nothing).

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

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

Nodejs works with a standard limit of requests for 80KB (see the HTTP_MAX_HEADER_SIZE variable in source code). Middlewares like the Connect allow defining larger limits, but then the configurable maximum limit will vary from middleware to middleware.

3

Depends on the server configuration. If you are working with PHP on a Linux or something similar you can control this by configuring the .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.

Source

Browser other questions tagged

You are not signed in. Login or sign up in order to post.