Hello,
I am wondering how long I can make my URLs? For example, I can:
index.php?number=123,456,789,123
But how long could this be? could I put 1000 numbers such as "123,456" in the URL? or 10000? Is there a limit?
Thanks -dr
Yes there is a limit on the total size of a URL, but it can vary between browsers and servers. You can normally get away with up to 2056 bytes with any modern browser, but the less, the better.
I have about 2000 characters in the URL. I don't have to pass it through the URL, but it does seem to work with Firefox.
-dr
If you do not have to pass it via the query string, then do not pass it through the query string.
laserlight wrote:If you do not have to pass it via the query string, then do not pass it through the query string.
Unless it is idempotent data and not at risk of exceeding any URL size limitiations.
Yes, that's true, but the latter does not seem to be the case here (it may exceed the maximum length of the query string).