title: Automated Yahoo Mail login with cURL - how?
body: <p>I am currently attempting to create a page with cURL instructions that does the following:</p>
  
  <p>Take the following link, send a GET request to it, and retrieve the results. </p>
  
  <p><a href="http://login.yahoo.com/config/login?login=xxxxxxx&amp;passwd=yyyyyyyy&amp;.done=http://m.yahoo.com/mail" rel="nofollow">http://login.yahoo.com/config/login?login=xxxxxxx&amp;passwd=yyyyyyyy&amp;.done=http://m.yahoo.com/mail</a></p>
  
  <p>xxxxx - username
  yyyyy - password</p>
  
  <p>Easy, right? Not really. Since the page that is to be returned, is designed to automatically log you in your Yahoo Mail inbox. </p>
  
  <p>I tried with:</p>
  
  <pre><code>&lt;?php
  
  // Get cURL resource
  $curl = curl_init();
  
  // Set some options - we are passing in a useragent too here
  curl_setopt_array($curl, array(
  CURLOPT_RETURNTRANSFER =&gt; 1,
  CURLOPT_URL =&gt; 'http://login.yahoo.com/config/login?login=xxxxxx&amp;passwd=yyyyyyy&amp;.done=http://m.yahoo.com/mail',
  CURLOPT_USERAGENT =&gt; 'something-here'
  ));
  
  // Send the request &amp; save response to $resp
  $resp = curl_exec($curl);
  
  // Close request to clear up some resources
  curl_close($curl);
  
  echo $resp;
  
  ?&gt;
  </code></pre>
  
  <p>I do get a response, but all it's about is the Yahoo Mail login page. It doesn't actually execute the login and retrieve the related Yahoo inbox.</p>
  
  <p>How would I go about doing that with cURL?</p>