PDA

View Full Version : Max length of a url-string


Danne
04-17-2003, 07:42 PM
Hi

Does anyone knows if there is a limit to the length of a url-string?
I try to load a page in an iframe, and if the string is too long the browser seems to ignore that statement. It doesn't even unload the current document.



iLoader.location.href=url;

joh6nn
04-17-2003, 07:57 PM
try self.frames['iLoader'].location.href = url;

Danne
04-17-2003, 08:57 PM
Thanks, but it's working as long as the string is below 2000 characters.

I just realized that I probably have to use a form with a post method for it...:rolleyes:


Thanks anyway..

joh6nn
04-18-2003, 04:50 AM
what exactly is it that you're trying to do? can we see the rest of the code?

Danne
04-22-2003, 06:32 PM
I tried to send a very long string as a querystring to the server, but i solved it now using a form with a post method.

Thanx anyway...:)

beetle
04-22-2003, 06:58 PM
Well, per RFC2068, urls are unbounded in length. However, Internet Explorer caps URLS at 2038 characters. Apache webserver will handle 8190 characters. Many proxy servers will throttle URLS at 255 characters.

So, unless you REALLY need to send lots of data via GET, it's best to keep it under 255. Otherwise, use POST.