Glynn Clements wrote:
> > No, it isn't a bug. It's the correct behaviour.
> 
> Both RFC 1945 (HTTP/1.0) and RFC 2068 (HTTP/1.1) define an HTTP URL
> as:
>           http_URL       = "http:" "//" host [ ":" port ] [ abs_path ]
> 
>           host           = <A legal Internet host domain name
>                             or IP address (in dotted-decimal form),
>                                           ^^^^^^^^^^^^^^^^^^^^^^^^
>                             as defined by Section 2.1 of RFC 1123>

I don't understand why you say the above RFC quote justifies the
behavior.  "in dotted-decimal form" means a.b.c.d,, not a single 32-bit
number.  The quote does NOT mention "or IP address (in 32-bit decimal
form)" or something like that.  Am I misinterpreting your statements or
the RFC?

Just for kicks, I wrote a little cgi script to convert a.b.c.d  or
hostname to the decimal equivalent.  I assume everyone on the list
understands the principle, if not the math, behind a.b.c.d -> 32-bit
decimal number

To convert my machine name, try 
http://kramer.ne.mediaone.net/cgi-bin/aton.cgi/24.128.125.14
      or
http://kramer.ne.mediaone.net/cgi-bin/aton.cgi/kramer.ne.mediaone.net

They will both print the number 411073806.  If you try (I used Netscape)
http://411073806
you will get my home page just as if you typed 
http://kramer.ne.mediaone.net

I'll prolly delete this script in a few weeks, so try it soon, or not. 
Have fun.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to