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


Groups > comp.lang.ruby > #4390

Mechanize retrieve headers

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!zen.net.uk!dedekind.zen.co.uk!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail
From Robert Garrido <rob_gar_esp@hotmail.com>
Newsgroups comp.lang.ruby
Subject Mechanize retrieve headers
Date Thu, 12 May 2011 11:50:51 -0500
Organization Service de news de lacave.net
Lines 25
Message-ID <ef417a1752934687390349fd6f0f72b2@ruby-forum.com> (permalink)
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1305219073 83103 65.111.164.187 (12 May 2011 16:51:13 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Thu, 12 May 2011 16:51:13 +0000 (UTC)
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 383096
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <ef417a1752934687390349fd6f0f72b2@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:4390

Show key headers only | 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