Press Ctrl-N to download something using FTP or HTTP.
Paste a http-URL that is longer than 256 characters: it gets chopped.
I don't know if there exists a "path length limit" for FTP; maybe there is.
But for HTTP this is a very short and unnecessary limit.
There are no official standards or guidelines for Max URL length.
Browsers and servers of different vendors all have different limits, see What is the maximum length of a URL.
But compared to all, 256 is very short.
Unnecessary URL length limit
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC uses the file system path limit in many places - which is 259 characters. Unfortunately it's not easy to use longer paths in some places and not in others...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
It is okay (and maybe even required) if the resulting file name is chopped.ghisler(Author) wrote:TC uses the file system path limit in many places - which is 259 characters
Example in pseudo code (it's been a while since I last used Delphi

Form init procedure:
OK button handler:txtUrl.maxLength := 2000
strFilename := convertStrangeChars(Left(txtUrl.Text, cFileLimit))
strData := SocketLib.getUrl(txtUrl.Text)
saveFile(strFilename, strData)