1

I'm using HTTP requests in my program to pass data via a querystring to a web-based status page. The requests are of the form:

http://www.example.com/poststatus.asp?ID="FRED"&widgetscompleted=1234&...parameterN=valueN

The ASP page parses the querystring and updates a database.

My question is: what is the sensible length limit of the querystring? I've seen mention of 2000-odd bytes but that seems to be browser-related and there is no browser involved here - just my app (using Indy) and IIS.

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
rossmcm
  • 5,493
  • 10
  • 55
  • 118
  • 2
    possible duplicate of [What is the maximum possible length of a query string?](http://stackoverflow.com/questions/812925/what-is-the-maximum-possible-length-of-a-query-string) – James Hill Oct 04 '11 at 23:52
  • Thanks @James. Indeed that one answers the question: `Microsoft Internet Information Server (Server) The default limit is 16,384 characters (yes, Microsoft's web server accepts longer URLs than Microsoft's web browser). This is configurable.` That answer wasn't thrown up as a candidate when I entered the question. – rossmcm Oct 04 '11 at 23:59

2 Answers2

3

Browser dependent, for more this might help

Emmanuel N
  • 7,350
  • 2
  • 26
  • 36
1

With the limitation on characters, what i usually do is minimize the querystring values from your example: &widgetscompleted= could be abreviated to &wc=.

I am certain if you minimize these, the length shouldn't be an issue.

user968709
  • 11
  • 1