[Cross posted to Ruby on Rails Forum and Mechanize mailing list.]
I'm using Mechanize for page scraping (Ruby 1.9.2 / Rails 3.0.5 / Mechanize 2.0.1). I'm seeing a case where a single
agent.get(url)
generates two HTTP GETs. Why is this happening?
The response to the first GET is a 200 (no redirect) and doesn't have any meta-refresh. I don't see why Mechanize is issuing the second GET (which happens to be failing with an EOFError with Content-Length / body length mismatch).
Details: I'm using the nifty Charles web proxy debugger to monitor browser / server interactions.