title: Mechanize get a file instead of a page object
body: <p>i try to scrap a web page. I use Nokogiri/ Mechanize. so if i make </p>
  
  <pre><code>page = agent.get(url)
  page.class
   =&gt; Mechanize::File
  </code></pre>
  
  <p>, sometimes i get a page object sometimes a file object. but what i need is, everytime a page object. i tried to add a pluggable_parser for plain/text but this don't work for me.</p>
  
  <p>have anyone an idea how i can fix it, or how i can find out the content-type from a file object or know, how i can cast a file to an page object?</p>
  
  <p>Thanks Michael</p>