I want to know the length or size of data we can send through get and post methods.
Asked
Active
Viewed 1.0k times
0
-
1Related thread - http://stackoverflow.com/questions/504947/when-should-i-use-get-or-post-method-whats-the-difference-between-them – KV Prajapati Nov 28 '11 at 04:26
-
This is a pretty common question. Possible duplicate of http://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request and http://stackoverflow.com/questions/2364840/what-is-the-size-limit-of-a-post-request – hafichuk Nov 28 '11 at 04:27
2 Answers
1
There is no defined limit, according to the RFC.
If you are using a web browser for GET, then you are generally going to be limited to around 2K for the full URL.
For POST, you are unlikely to hit a limit at any practical level.
Of course, there are server-side limits as well...
Brad
- 152,561
- 47
- 332
- 504
1
I am not sure about the HTTP protocol specification but web browsers and servers do impose limits.
Vandrey
- 431
- 1
- 6
- 17
Umer Hayat
- 1,941
- 4
- 30
- 56