[10220] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: URL parsing and IPv6 addresses

daemon@ATHENA.MIT.EDU (Kim)
Fri Aug 16 11:38:01 1996

From: Kim <bookwyrm@agii.solluna.org>
To: brandon@tombstone.sunrem.com (Brandon Gillespie)
Date: Fri, 16 Aug 1996 11:39:52 -0400 (EDT)
Cc: www-talk@w3.org
In-Reply-To: <Pine.BSF.3.91.960816091607.7578A-100000@tombstone.sunrem.com> from "Brandon Gillespie" at Aug 16, 96 09:19:07 am
Resent-From: www-talk@w3.org

Earlier, <Brandon Gillespie> inscribed:
> 
> Actually, using '.' is also backwards compatable, just change the URL 
> spec so that either '.' or ':' can be the port seperator on a IPv4 addr, 
> and a '.' will also work with v6.  You know a v4 addr is a quad, so the 
> fifth seperation is going to be the port, ala:
> 
>     0.0.0.0.80
> 
> The only problem from that point is figuring out if its a hostname or an
> address :)

Probably the easiest way is to test to see if the last part is a decimal
port number.  I do not think there are any purely numerical TLDs.

Kim

(Hm.  I wonder if that is why the IPv6 folks chose : instead of .  It might
be hard to tell if something like "feed.cafe.ca" is a domain name or a 
hexadecimal IP address.)


home help back first fref pref prev next nref lref last post