Unfortunately it's not possible with mechanize - you have to make 2 requests. I'm working on similar solution using Capybara with Poltergeist - it's a headles browser which saves content upon visiting a page - a bit slower than what Mechanize do but at least it can save the content from which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.