On Thu, Nov 20, 2008 at 2:16 PM, Ben Johnson <bjohnson / binarylogic.com> wrote:

>>> URI.parse("http://whatever_again.domain.com")
> URI::InvalidURIError: the scheme http does not accept registry part:
> whatever_again.domain.com (or bad hostname?)

> When you add an underscore the sub domain it raises an exception, even
> though that is a perfectly valid host name.

No, it's not. Check the DNS RFCs: A-Z, a-z, 0-9 and the hyphen are
the only legal characters.

FWIW,
-- 
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com