RE: [squid-users] "_" (underline) in website names

From: Robert Collins <robert.collins@dont-contact.us>
Date: Fri, 18 May 2001 16:42:22 +1000

> How do you connect to websites that contain "_"s? I can use
> a netscape proxy -- that worked. I can use SOCKS. Why should
> squid disallow it? Squid should not be in the position of deciding
> what are valid internet names -- should it?
>
>
> http://azur_gddess_shadws.tripod.com/blueselenasteenwiccasite/id4.html
>
> Found it in a google search.
>
> -linda
>
>

Quoting from RFC 2396:

The host is a domain name of a network host, or its IPv4 address as a
   set of four decimal digit groups separated by ".". Literal IPv6
   addresses are not supported.

      hostport = host [ ":" port ]
      host = hostname | IPv4address
      hostname = *( domainlabel "." ) toplabel [ "." ]
      domainlabel = alphanum | alphanum *( alphanum | "-" ) alphanum
      toplabel = alpha | alpha *( alphanum | "-" ) alphanum
      IPv4address = 1*digit "." 1*digit "." 1*digit "." 1*digit
      port = *digit

an underscore "_" is not part of alphanum, or alpha.

Squid is in the position of being an http proxy, which requires
standards conformance. It's not choosing what names are valid internet
names, it's deciding what are valid _URL_ hostnames. These are
different.

Rob
 
 
Received on Fri May 18 2001 - 00:50:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:10 MST