Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #4390

Mechanize retrieve headers

From Robert Garrido <rob_gar_esp@hotmail.com>
Newsgroups comp.lang.ruby
Subject Mechanize retrieve headers
Date 2011-05-12 11:50 -0500
Organization Service de news de lacave.net
Message-ID <ef417a1752934687390349fd6f0f72b2@ruby-forum.com> (permalink)

Show all headers | View raw


Hi all,

I'm using mechanize for web inspection, when I get a URL I get a refresh
URL in the headers:

<meta http-equiv="refresh"
content="2;url=/html/Splash.action?splash="/>\

When I ask to mechanize to list the metadata I do this:

 pp $page.meta

I get:

[#<Mechanize::Page::Meta
  ""
  "http://localhost/html/Splash.action?splash=">]

How can I cleanly retrieve the refresh URL?

Thanks!

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Mechanize retrieve headers Robert Garrido <rob_gar_esp@hotmail.com> - 2011-05-12 11:50 -0500
  Re: Mechanize retrieve headers 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-12 19:45 -0500

csiph-web