The
Tue Jul 25 04:33:10 CDT 2006
riki,
the section that you refer to, RFC 1123 Section 2.1, see below, is only
saying that the syntax has been "relaxed" to allow a *** "host name" *** to
start with a digit.
i.e. before this "relaxation", the host "7up.pepsi.com" was not allowed, now
it is allowed.
but this RFC does not define dot-less numerical hosts (i.e. as an alternate
way to represent an IP address, with no DNS resolution involved) as being
legal.
or am i missing something?
=======================================
2.1 Host Names and Numbers
The syntax of a legal Internet host name was specified in RFC-952
[DNS:4]. One aspect of host name syntax is hereby changed: the
restriction on the first character is relaxed to allow either a
letter or a digit. Host software MUST support this more liberal
syntax.
Host software MUST handle host names of up to 63 characters and
SHOULD handle host names of up to 255 characters.
Whenever a user inputs the identity of an Internet host, it SHOULD
be possible to enter either (1) a host domain name or (2) an IP
address in dotted-decimal ("#.#.#.#") form. The host SHOULD check
the string syntactically for a dotted-decimal number before
looking it up in the Domain Name System.
DISCUSSION:
This last requirement is not intended to specify the complete
syntactic form for entering a dotted-decimal host number;
that is considered to be a user-interface issue. For
example, a dotted-decimal number must be enclosed within
"[ ]" brackets for SMTP mail (see Section 5.2.17). This
notation could be made universal within a host system,
simplifying the syntactic checking for a dotted-decimal
number.
If a dotted-decimal number can be entered without such
identifying delimiters, then a full syntactic check must be
made, because a segment of a host domain name is now allowed
to begin with a digit and could legally be entirely numeric
(see Section 6.1.2.4). However, a valid host name can never
have the dotted-decimal form #.#.#.#, since at least the
highest-level component label will be alphabetic.
==============================================
"riki" <see_my_home@page> wrote in message
news:%23CKBlG6rGHA.4848@TK2MSFTNGP04.phx.gbl...
> riki wrote:
>> The PocketTV Team wrote:
>>> i don't understand why PIE (and IE too, by the way) accepts URL's like
>>>
http://1113332805 which, according to RFC 1738, are not legal syntax.
>> According to RFC 1123 (section 2.1) this IS legal syntax
>
> Further, RFC 1738 is for the most part obsoleted by RFC 2396, then RFC
> 2732, and finally by RFC 3986 (Uniform Resource Identifier (URI): Generic
> Syntax), which, like RFCs 1945 (Hypertext Transfer Protocol --
> HTTP/1.0) and 2068 (Hypertext Transfer Protocol -- HTTP/1.1), concur with
> RFC 1123 Section 2.1 for the specification of the host.
>
> Riki
>
> --
> ThemeChanger for Smartphone :
http://homepages.inspire.net.nz/~gambit/
> AbstractStart for Smartphone :
>
http://homepages.inspire.net.nz/~gambit/AbstractStart/
>
> (when asked how much sleep he'd gotten...)"I'd have to do a 'last' to find
> out when I went to bed last night."-- Mike Galluchon, Software Developer