News for hackers. Stuff that matters.
Re:URLs: It's Complicated by indymike on Wednesday June 23, 2021 @06:12PM (#27611180)
The spec is silent on length. 2000 bytes came from some web servers (old IIS comes to mind) that capped the URL at 2K or something close to that. So extra long URLS were problematic (and a lot of early web apps went nuts with parameters). So, max length is up to the implementer. All I know is that I've had to fix lots of code where someone assumed that 255 characters is all you'll ever need for a URL.
Re:URLs: It's Complicated by tpetry on Thursday June 24, 2021 @02:28AM (#27614555)
255 characters is the default to a variable length string column in databases. So if a developer did not pay attention he just used the default which is in some cases to short for an url.
Re:URLs: It's Complicated by masklinn on Thursday June 24, 2021 @12:32AM (#27614017)
> old IIS comes to mind

And msie for which it’s a hard limit not just a default.