0

I want to know the length or size of data we can send through get and post methods.

Rehan Haider
  • 893
  • 11
  • 26
Biswas
  • 127
  • 2
  • 4
  • 7
  • 1
    Related 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 Answers2

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
  • 159,648
  • 54
  • 349
  • 530
1

I am not sure about the HTTP protocol specification but web browsers and servers do impose limits.

Vandrey
  • 531
  • 1
  • 8
  • 23
Umer Hayat
  • 1,993
  • 5
  • 31
  • 58