Re:Berners-Lee 'Sorry' for Slashes (2009)
by zeroimpl on Thursday July 30, 2020 @11:44PM
(#24005441)
What would :443/thing.jpg mean? Is that a port or hostname?
[ Parent
| on HN ]
Re:Berners-Lee 'Sorry' for Slashes (2009)
by EADGBE on Saturday August 01, 2020 @01:38AM
(#24017944)
Also, don’t forget user/pass prompt in a URL.
Re:Berners-Lee 'Sorry' for Slashes (2009)
by otterlicious on Saturday August 01, 2020 @05:52AM
(#24019187)
There is no ambiguity.
http:username:[email protected]/thing.jpg http:username:[email protected]:[email protected]/thing.jpg
But they might have picked a different delimiter for that in this alternative future. Or perhaps realized it was a bad idea earlier.
IPv6 addresses are a different story. We definitely would have chosen a different character to delimit IPv6 addresses in this future.
Re:Berners-Lee 'Sorry' for Slashes (2009)
by otterlicious on Saturday August 01, 2020 @05:41AM
(#24019118)
A port. RFC 1912 states "Labels may not be all numbers, but may have a leading digit (e.g., 3com.com)."
Re:Berners-Lee 'Sorry' for Slashes (2009)
by zeroimpl on Saturday August 01, 2020 @11:08AM
(#24021006)
FWIW I had googled whether hostnames may be entirely digits before asking this, and this SO answer suggested yes. Perhaps that doesn’t apply to URLs? But to be clear I meant hostname not a FQDN, because obviously there is no ambiguity once a dot is present.
https://serverfault.com/questions/638260/is-it-valid-for-a-h...