Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max size of post data in http

Tags:

http

post

size

Is there any limit in terms of amount of data that can be sent with HTTP POST ?

I have seen in some emails there is limit of 25 MB or 20 MB for attachments..,but I think they are imposed by the server or application...

In terms of plain HTTP is there any limit....

Also, is there any limit in terms of size of value of a field as well?

And why large values in hidden fields are not a good thing, or is it?

like image 975
Brij Avatar asked Aug 02 '12 21:08

Brij


People also ask

How much data we can send through POST method?

POST method does not have any limit on the size of data.

What is HTTP POST payload?

The Request Payload - or to be more precise: payload body of a HTTP Request. is the data normally send by a POST or PUT Request. It's the part after the headers and the CRLF of a HTTP Request.

What is the maximum payload size for REST API?

REST API call limits The maximum payload limit for a single API call is 45 MB, so ensure that the aggregate size of the records in a request do not exceed this limit.

How do I know my HTTP request size?

There's really no straight forward way to do measure the size of the http request sent to the server - primarily because the entire request is not assembled inside your program (which is where you will be calculating the size of the request).


1 Answers

Post data limits are set by the application on the server that the file is uploaded to. Just to give you something concrete to think about, here is a discussion on about max_filesize from the php manual, http://www.php.net/manual/en/features.file-upload.common-pitfalls.php . Many websites use php's builtin functions and that link describes how the upload function is setup by default. Of course the defaults are different for each web platform such as if they use a ruby on rails or python based one.

like image 98
gmlime Avatar answered Oct 15 '22 19:10

gmlime