On 6/5/07, Morgan Cheng <morgan.chengmo / gmail.com> wrote:
> I am using Ruby 1.8.6. I found URI cannot parse URI with "_" is host.
>
> uri = "http://dr_gabriele.podomatic.com/enclosure/
> 2006-08-03T15_09_59-07_00.m4v"
> URI.parse(uri)
>
> Is there any way to work around that?
> thanks

It seems underscores are not allowed in host part of an URI. So it's
not a bug. See RFC 2396 (URI),  and 1035 (DNS). If you really want it,
you can open the class and redefine some of the methods and/or
manually edit URI sources.