Forum: Ruby mechanize 'stop button'

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Brian L. (Guest)
on 2008-11-10 04:28
Hello, I've run into a bit of a situation with mechanize:

def get_page
  agent =
  agent.read_timeout = 150
  page_one = agent.get(
  page_two = agent.submit(form) # will timeout
rescue Timeout::Error
  page_two.body # returns nil

When the page eventually times out, i'd still like to parse what it
gathered, but i can't grab what it read.  The functionality i really
want is to 'hit the stop button' and grab what's there.

Any ideas?
This topic is locked and can not be replied to.