title: Perl WWW::Mechanize::Firefox timeout implementation
body: <p>I am using WWW::Mechanize::Firefox along with MozRepl plugin in Firefox. The code works properly to fetch content from sites by sending them an HTTP GET request.</p>
  
  <p>I am going through a list of URLs and sending an HTTP GET Request to each of them.</p>
  
  <p>However, if the request hangs on a particular URL, it keeps waiting.</p>
  
  <p>Please note that I am referring to cases where a part of the web page content is loaded while some of the content is still pending. It happens in cases where a web page loads a lot of content from third party sites and if one of the resources (an image for instance) could not be loaded, the browser keeps waiting for it.</p>
  
  <p>I want the request to timeout after 'n' seconds so that I can read the next URL from the list and continue with the code execution.</p>
  
  <p>In WWW::Mechanize perl module, the constructor supported the timeout option as shown below:</p>
  
  <pre><code>$mech=WWW::Mechanize-&gt;new(timeout =&gt; 10);
  </code></pre>
  
  <p>However, I could not find a similar option in the documentation for the Perl Module, WWW::Mechanize::Firefox here:</p>
  
  <p><a href="http://metacpan.org/pod/WWW::Mechanize::Firefox" rel="nofollow">http://metacpan.org/pod/WWW::Mechanize::Firefox</a></p>
  
  <p>I tried this:</p>
  
  <pre><code>$mech=WWW::Mechanize::Firefox-&gt;new(timeout =&gt; 10);
  </code></pre>
  
  <p>But I think it does not work as there are still some sites for which the request hangs.</p>