title: Site scraping in perl using WWW::Mechanize
body: <p>I have used WWW::Mechanize in perl for site scraping application.<br/></p>
  
  <p>I have faced some difficulties when I'm going to login to particular site via WWW::Mechanize. I have gone through some examples of WWW::Mechanize. But i couldn't find out my issue. 
  I have mention below my code.</p>
  
  <pre><code>#!/usr/bin/perl -w
  
  use strict;
  use WWW::Mechanize;
  use HTTP::Cookies;
  use Crypt::SSLeay;
  my $agent = WWW::Mechanize-&gt;new(noproxy =&gt; 0);
  $agent-&gt;cookie_jar(HTTP::Cookies-&gt;new());
  $agent-&gt;agent('Mozilla/5.0');
  $agent-&gt;proxy(['https', 'http', 'ftp'], 'http://proxy.rcapl.com:3128');
  $agent-&gt;get("http://www.facebook.com");
  my $re=$agent-&gt;submit_form(
          form_number =&gt; 1,
          fields      =&gt; {
              Email    =&gt; 'xyz@gmail.com',
              Passwd  =&gt;'xyz'
          }
      );
  print $re-&gt;content();
  </code></pre>
  
  <p>When i run the code it says:</p>
  
  <p>Error POSTing <a href="https://www.facebook.com/login.php?login_attempt=1" rel="nofollow">https://www.facebook.com/login.php?login_attempt=1</a>: Not Implemented at ./test.pl line 11</p>
  
  <p>Can anybody tell what's going wrong on code. Do i need to set all the parameters which facebook send for login?.</p>