From: Hassan Schroeder Date: 2008-11-21T08:20:03+09:00 Subject: Re: Found a ruby bug in the URI class, what do I do? On Thu, Nov 20, 2008 at 2:16 PM, Ben Johnson 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