"Berger, Daniel" <Daniel.Berger / qwest.com> writes:

> unless path.index('http://', 0)
  unless path.index('http://') == 0
>    path = 'http://' + path
>    host = URI.parse(path).host
> end
>
> It's not necessarily the most robust solution, but you get the general
> idea.
> Regards,
>
> Dan
-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org