From: 7stud -- Date: 2011-05-13T09:45:16+09:00 Subject: Re: Mechanize retrieve headers Robert Garrido wrote in post #998283: > Hi all, > > I'm using mechanize for web inspection, when I get a URL I get a refresh > URL in the headers: > > content="2;url=/html/Splash.action?splash="/>\ > > When I ask to mechanize to list the metadata I do this: > > pp $page.meta > > I get: > > [# "" > "http://localhost/html/Splash.action?splash=">] > > How can I cleanly retrieve the refresh URL? > > Thanks! The Mechanize docs follow the ruby tradition: they suck. So I would just use a regex to get that tag from the html of the page. -- Posted via http://www.ruby-forum.com/.