How long may parameters in a get request be?

Dominik picture Dominik · Jun 1, 2011 · Viewed 10.7k times · Source

I am currently programming an API that gets passed data via get parameters so I was wondering if the total length of the URL or of the parameters value is limited in best practice or by the protocol.

Answer

Blindy picture Blindy · Jun 1, 2011

Basically, 2K is the most you can rely on in a cross-browser fashion, but if you drop support for IE 8 and below, you can get to like 64K.

Although I feel I need to question your need to know this, anything over say.. 100 characters would best be handled through a POST request instead of a GET.