title: How do I download a file with WWW::Mechanize after it submits a form?
body: <p>I have the code:</p>
  
  <pre><code>#!/usr/bin/perl
  use strict;
  use WWW::Mechanize;
  
  my $url = 'http://divxsubtitles.net/page_subtitleinformation.php?ID=111292';
  my $m = WWW::Mechanize-&gt;new(autocheck =&gt; 1);
  $m-&gt;get($url);
  $m-&gt;form_number(2);
  $m-&gt;click();
  my $response = $m-&gt;res();
  print $m-&gt;response-&gt;headers-&gt;as_string;
  </code></pre>
  
  <p>It submits the download button on the page, but I'm not sure how to download the file which is sent back after the POST.</p>
  
  <p>I'm wanting a way to download this with wget if possible. I was thinking that their may be a secret url passed or something? Or will I have to download it with LWP directly from the response stream?</p>
  
  <p>So how do I download the file that is in that header?</p>
  
  <p>Thanks,</p>
  
  <p>Cody Goodman</p>