Can HTTP POST be limitless?

IAdapter picture IAdapter · May 21, 2010 · Viewed 136.3k times · Source

I heard that HTTP POST has no specification limit in data size it can be sent by. Is that true or is there just some really high limit?

Answer

Dan Dascalescu picture Dan Dascalescu · May 6, 2019

Quite amazing how all answers talk about IIS, as if that were the only web server that mattered. Even back in 2010 when the question was asked, Apache had between 60% and 70% of the market share. Anyway,

  • The HTTP protocol does not specify a limit.
  • The POST method allows sending far more data than the GET method, which is limited by the URL length - about 2KB.
  • The maximum POST request body size is configured on the HTTP server and typically ranges from
    1MB to 2GB
  • The HTTP client (browser or other user agent) can have its own limitations. Therefore, the maximum POST body request size is min(serverMaximumSize, clientMaximumSize).

Here are the POST body sizes for some of the more popular HTTP servers: