From: Luis Parravicini Date: 2009-01-29T01:24:40+09:00 Subject: Re: how to get an absolute address of a link On Wed, Jan 28, 2009 at 9:30 AM, Tsunami Script wrote: > Is there some URL lib that I can use to get the absolute address of a > relative URL ? Maybe I could pass a "base" link to the method . Ideally > , I would like to know if this could by achieved from mechanize , but > anything would do . You can use URI.join irb -ruri irb(main):001:0> URI.join('http://example.com', '/path/a/b') => # irb(main):002:0> URI.join('http://example.com', 'http://google.com/path/a/b') => # irb(main):003:0> -- Luis Parravicini http://ktulu.com.ar/blog/