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

10-21-2005, 04: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?

Philip M
10-21-2005, 05:16 PM

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.

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

10-22-2005, 03: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