From jeremywoertink at gmail.com Fri Oct 23 01:25:57 2009 From: jeremywoertink at gmail.com (Jeremy Woertink) Date: Thu, 22 Oct 2009 22:25:57 -0700 Subject: [Mechanize-users] Mechanize help Message-ID: <1ea5c3820910222225i54add442yaae6b53bc06866a@mail.gmail.com> I had a small application I wrote using mechanize 0.7.7, and I just recently upgraded. I tried to run the application, but had nothing but epic fail. The main issue that I'm having at this moment is that when I click on this one link, it just sits there and hangs. I'm not sure how to see what is going on during all this. I've tried to access this link a few different ways. @login_url = 'http://smallbusiness.yahoo.com/services/index.php' @browser = WWW::Mechanize.new do |agent| agent.user_agent_alias = 'Mac Mozilla' agent.follow_meta_refresh = true agent.keep_alive = false end @login_page = @browser.get(@login_url) #this is where it hangs forever.... This is the other way I tried it. @url = 'http://smallbusiness.yahoo.com/ecommerce/' @browser = WWW::Mechanize.new do |agent| agent.user_agent_alias = 'Mac Mozilla' agent.follow_meta_refresh = true agent.keep_alive = false end @page = @browser.get(@url) @login_link = @page.link_with(:text => 'Small Business') @login_page = @link.click #again with the hanging forever... Any ideas what I can try? Thanks, ~Jeremy -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremywoertink at gmail.com Fri Oct 23 01:56:46 2009 From: jeremywoertink at gmail.com (Jeremy Woertink) Date: Thu, 22 Oct 2009 22:56:46 -0700 Subject: [Mechanize-users] Mechanize Help Message-ID: <1ea5c3820910222256p7e3d2f7frb177c016ffb69d8f@mail.gmail.com> Ok, so I guess it seems that either Yahoo! changed something with their page, or the agent.follow_meta_refresh works different from how it used to. Before I had to set it to true to access that page, I just tried setting it to false and it seemed to go through fine. ~Jeremy Woertink -------------- next part -------------- An HTML attachment was scrubbed... URL: