mechanize 'stop button'

B

Brian Lonsdorf

Hello, I've run into a bit of a situation with mechanize:

def get_page
agent = WWW::Mechanize.new
agent.read_timeout = 150
page_one = agent.get(www.foo.com)
page_two = agent.submit(form) # will timeout
rescue Timeout::Error
page_two.body # returns nil
end

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Mechanize 0
[Mechanize] Invisible button? 3
Mechanize and charset issues 5
mechanize login problem 1
Mechanize 2
problems with mechanize and inheritance 1
Problem with Mechanize 2
Using Mechanize To Submit Forms 3

Members online

Forum statistics

Threads
473,780
Messages
2,569,607
Members
45,241
Latest member
Lisa1997

Latest Threads

Top