title: Get captcha using Curl and send data and grab results
body: <p>So bascially am new to php. I want to get catpcha from a website. Then I wanna show it on my webpage and send a small post request and get the results. The site I am talking about is <a href="http://www.bollywoodmotion.com/mobile-tracker-with-name.html" rel="nofollow">http://www.bollywoodmotion.com/mobile-tracker-with-name.html</a></p>
  
  <p>I want to get the captcha from that page to my page and to enter captcha in my page and send the same as from my page. I had done this in a software using c#. I also want a web version, since I have no idea on php. Any way I tried searching and got curl is the best option for me. So can some one help me with the sample php code. </p>
  
  <p>This the request doing by it.</p>
  
  <p><a href="http://www.bollywoodmotion.com/mobile-tracker-process.html" rel="nofollow">http://www.bollywoodmotion.com/mobile-tracker-process.html</a></p>
  
  <pre class="lang-none prettyprint-override"><code>POST /mobile-tracker-process.html HTTP/1.1
  Host: www.bollywoodmotion.com
  User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:26.0) Gecko/20100101 Firefox/26.0
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: en-US,en;q=0.5
  Accept-Encoding: gzip, deflate
  Referer: http://www.bollywoodmotion.com/mobile-tracker-with-name.html
  Cookie: __utma=164959532.607980600.1392265746.1392293744.1392969352.5; __utmz=164959532.1392265754.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 
  PHPSESSID=t37p2pqeclbmc2tfvd8tt18qs5; __utmb=164959532.2.9.1392969356013; __utmc=164959532
  Connection: keep-alive
  Content-Type: application/x-www-form-urlencoded
  Content-Length: 36
  
  num=960xxxxxx&amp;6_letters_code=hy5xjf
  </code></pre>
  
  <pre class="lang-none prettyprint-override"><code>HTTP/1.1 200 OK
  Date: Fri, 21 Feb 2014 07:56:11 GMT
  Server: Apache
  Expires: Thu, 19 Nov 1981 08:52:00 GMT
  Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  Pragma: no-cache
  Content-Encoding: gzip
  Set-Cookie: dle_user_id=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.bollywoodmotion.com; httponly
  Set-Cookie: dle_password=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.bollywoodmotion.com; httponly
  Set-Cookie: dle_hash=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.bollywoodmotion.com; httponly
  Last-Modified: Mon, 16 Sep 2013 23:55:25 GMT
  Keep-Alive: timeout=10, max=30
  Connection: Keep-Alive
  Transfer-Encoding: chunked
  Content-Type: text/html
  </code></pre>