title: Web scraping in php with post method, coockie and captcha
body: <p>I am trying to scrap few data from <a href="http://iunlocker.net/check_imei.php" rel="nofollow">http://iunlocker.net/check_imei.php</a> this link.</p>
  
  <p>This page have contains post method and captcha on it and it is also using a cookie. I just made inspect element and checked in network, Cookie is setting in header</p>
  
  <p>Please can someone tell me, What mistake i am making there in code?</p>
  
  <pre><code>$ch = curl_init();
  $imei="013977000272744";
  
  curl_setopt($ch,     CURLOPT_URL,"http://iunlocker.net/check_imei.php");
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_VERBOSE, 1);
  curl_setopt($ch, CURLOPT_COOKIE,'_ym_uid=1460051101134309035;  _ym_isad=1; cxx=80115415b122e7c81172a0c0ca1bde40; _ym_visorc_20293771=w');
  curl_setopt($ch, CURLOPT_POSTFIELDS,array(
      'imei'=&gt;$imei,      
       ));
  
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
  $server_output = curl_exec ($ch);
  echo $server_output;
  
  curl_close ($ch); 
  </code></pre>
  
  <p>Example IMEI 013977000272744 for manually checking.</p>