At 12:28 am -0600 18/3/99, sirbruce@ix.netcom.com wrote:
On 03/17/99 22:07:19 you wrote: OTOH, are non-doted IP adresses valid URLs?
They are not required according to the RFC (see guy's email for a full discussion). When I did a quick look I couldn't find any other interface documents (telnet, etc.) that required anything other than dotted decimals for IP translation, either, but I can't say for certain that's entirely true. Anyway, when it comes to URLs, the fact that they work is an artifact of the code, not the specification.
I'm not so sure they're a bad artifact though. If you start from the premise that you should be allowed to enter an IP address as a URL, and consider that in fact an IP address is defined as an unsigned 32-bit integer, then it sort of makes sense to allow it. After all, dotted quad notation was simply an easier way to write the 32-bit integer...
Having said that, does anyone have the latest URL specification to hand? If that says "dotted decimal", I'll shut up, but if it just says "IP address" I reckon that lack of support could be classified as suboptimal.
Alex
"During my service in the United States Congress, I took the initiative in creating the Internet." -- Al Gore, 9 March 1999