
Max length of a querystring
Quote:
> Hi,
> From what I've heard, it diffesr on different browsers.
> If you stay below 1K, you should be on the safe side
> though.
I have the answer, and you are correct to a point.
Reading from an Apache web server book: "The total size of data that can
be transmitted as part of a URL is limited by the client's URL-length
limit."
Using a QueryString as part of your URL you must keep in mind the length
of the URI (http://[domain]/[path]). Thus is the URI is long, then you
must keep the QueryString short.
More from the book: "The length of the value of a single environment
variable [such as QueryString] is limiting. Many - if not all - operating
systems have limits on the amount of bytes an environment variable's value
can contain."
Based on a book published by Wrox on ASP 2.0: "..the length of the URL
should be less (although doesn't have to be) than 255 characters, because
some older client or proxy implementations may not properly support these
lengths."
Test the length of the full URL. If you receive an error 414, then you
know you've reached your limit.
I've personally have found 1024 total characters to be safe when using a
method=GET (QueryString), but I perfer using POST (Request.Form) instead.
Hope this helps,
Tracy
Quote:
> > Hi
> > I was wondering what the maximum length of a querystring was?
> > As in http://www.myserver.com/fred.asp?arg1=1&arg2=2 etc etc
> > Thanks In Advance
> > Mark
~~~~~~~
http://www.intsites.com/ ICQ: 18737275
....................................
I believe that all humans are created equal and deserves
the same respect and dignity. Let's end hatred...
http://www.intsites.com/tracy.html
*** spamguard in place! to email me: nimue at teleport dot com ***