Is there any limit for query string? if means what is the maximum size?.

Showing Answers 1 - 13 of 13 Answers

team

  • Jan 3rd, 2006
 

255

  Was this answer useful?  Yes

sandeep

  • Jan 17th, 2006
 

255

  Was this answer useful?  Yes

Shree

  • Feb 8th, 2006
 

255 bytes (Request others to specify units for clarity)

Alex Weslowski

  • Aug 3rd, 2006
 

255 bytes is an old (circa 1996) restriction on querystring length...

http://www.aspfaq.com/show.asp?id=2222

RFC 2068 states:

Servers should be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations may not properly support these lengths.

The spec for URL length does not dictate a minimum or maximum URL length, but implementation varies by browser. On Windows:

  • Opera supports ~4050 characters
  • IE 4.0+ supports exactly 2083 characters
  • Netscape 3 -> 4.78 support up to 8192 characters...
  • Netscape 6 supports ~2000 [characters]...

...

POST does not have such low limits on the size of name/value pairs, because the data is sent in the header, not in the URL. The limit on POST size, by default, is 2 MB on IIS 4.0 and 128 KB on IIS 5.0. POST is also a little more secure than GET -- it's tougher (though not impossible) to tinker with the values of POSTed variables, than values sitting in the querystring. 

[The POST limit can be changed using the MaxClientRequestBuffer registry value, for IIS 4.0 and IIS 5.0. Use the MaxRequestEntityAllowed and/or AspMaxRequestEntityAllowed properties in the IIS metabase, for IIS 6.0.]

  Was this answer useful?  Yes

Narasimha Rao

  • Jun 8th, 2007
 

Query string length depends on browser compatability

IE supports upto 255
Firefox supports upto 4000

kishore.ib

  • Dec 19th, 2007
 

The amount of data you can transfer on the QueryString is limited by a number of factors, but the one that seems to be the most restrictive is the space in your browser's address bar. The Internet Explorer versions 5 and 6 that I tested only allowed up to 2,047 characters while Netscape Navigator version 4 seemed to be able to handle up to 30,000 and I couldn't get version 6 much past 9,000.

Before you start thinking that 2,047 is a lot, it's not like you can go ahead and use all of those characters. That limit is even less once you deduct the address of your site, the path to the requested file, and even the requested file name.

IE5.0,IE6.0,IE7.0----->2048 Characters(256bytes)
Opera       -------->     4050 Characters
NetScape6  -------->  2000Characters
NetScape4 ---------> 30000 Characters-

  Was this answer useful?  Yes

Haoest

  • Dec 22nd, 2007
 

Just want to confirm, there's a limit on the browser side, and another limit on server side, true?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions