Max length of a querystring 
Author Message
 Max length of a querystring

Hi

I was wondering what the maximum length of a querystring was?

As in   http://www.*-*-*.com/

Thanks In Advance

Mark



Sun, 04 Aug 2002 03:00:00 GMT  
 Max length of a querystring
Hi,

From what I've heard, it diffesr on different browsers.
If you stay below 1K, you should be on the safe side
though.

Regards,

    /Olof

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

Sent via Deja.com http://www.deja.com/
Before you buy.


Mon, 05 Aug 2002 03:00:00 GMT  
 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 ***


Tue, 06 Aug 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. max len of QueryString

2. QueryString length of mail merge datasource.

3. Querystring Length Constraint

4. what's the length limit of QueryString

5. Maximum length of Querystring

6. Set max length on unbound textbox - how?

7. Max INI File length

8. finding the max length set-up for a Form Field

9. Max record length on Random Access?

10. Max. length of SQL string in openrecordset statement

11. way to find max var char field lengths of fields in SQL Server table

12. Max length of text boxes

 

 
Powered by phpBB® Forum Software