...

View Full Version : Is there a limit to the number of chars u can have in url string?



Exodious
10-21-2005, 05:59 PM
Hi all,
I don't remember there being one but, is there a limit (there must be one but I know not what it is, or maybe I do ^^ just not exactly how many) to how many chars u can have as the location...

i.e. my iframe's location is set using window.location.href = "http://www.somewhere.com/somefile.htm?A very long Querystring"

Thanks for help!

Appreciated :)

is this document accurate?
http://www.aspfaq.com/show.asp?id=2222

Philip M
10-21-2005, 06:16 PM
http://support.microsoft.com/default.aspx?scid=KB;en-us;q208427

SUMMARY
Internet Explorer has a maximum uniform resource locator (URL) length of 2,083 characters, with a maximum path length of 2,048 characters. This limit applies to both POST and GET request URLs.

felgall
10-21-2005, 11:57 PM
Some browsers have a 255 byte limit and so you should not go over that.

martin_narg
10-22-2005, 04:07 AM
Some browsers have a 255 byte limit and so you should not go over that.
Kind of mate, RFC 2068 says "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" but in reality the best option is not to go above 2000 characters. The 255 limit is set by the RPC, not the browser architecture. Netscape 3+, IE 4+, Firefox (all), Safari (all), Opera (all), Konqueror (all) - all these browsers support up to 2000 characters (and most support more than this). All commonly-used proxy servers, by default, accept long (>255 character) querystrings.

Hope this helps

m_n



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum