require 'rubygems'
require 'mechanize'
agent = Mechanize.new
page = agent.get("https://example.com/login")
login_form = page.forms.first
login_form.username = 'username'
login_form.password = 'password'
page = agent.submit(login_form)
pp page
代码如上。可是登录后有个跳转页,显示的是
#<Mechanize::Page
{url #<URI::HTTPS:0xb6c5e764 URL:https://example.com/takelogin.php>}
{meta_refresh #<Mechanize::Page::MetaRefresh "" "index.php">}
{title nil}
{iframes}
{frames}
{links}
{forms}>
新手请教怎么处理这个跳转页