Re: http://1234567890 (fwd)

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 15 Aug 2000 09:15:36 +0200

Martin Pool wrote:

> I noticed the other week that this `feature' is specifically
> disallowed by rfc2553:

More important in this context is that it is not allowed by the URL RFCs

RFC1738 "Uniform Resource Locators (URL)"

    host
        The fully qualified domain name of a network host, or its IP
        address as a set of four decimal digit groups separated by
        ".". ....

RFC2396 "Uniform Resource Identifiers (URI): Generic Syntax"

   The host is a domain name of a network host, or its IPv4 address as a
   set of four decimal digit groups separated by ".". ....

(also more formally expressed in BNC form)

The only difference between the two RFC's in this area is that RFC2396
also allows for local domains (not fully qualified domain names) but
note that such uses is not "Uniform", and indicates that sometime in the
future IPv6 addresses will also be allowed, but no syntax (for IPv6 in
URI/URL's) has been defined yet.

So for Squid to bend over and handle http://1234567890/ in a reasonable
manner without bending the rules to much it should

1. First try if it is resolvable by appending local_domain.

2. If not resolvable or no local_domain, respond with an error telling
that the host could not be found, but it might be available as
http://73.150.2.210/ (inet_ntoa(inet_aton(hostname))

/Henrik
Received on Tue Aug 15 2000 - 01:14:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:34 MST