title: eBay login using PHP cURL
body: <p>I'm new to cURL and I'm trying to access my ebay account using php cURL, I have an existing code but ebay doesn't seem to let me log in using cURL. It just displays the login page when I echo the result.</p>
  
  <pre><code>$username="testtest"; 
  $password="testtest"; 
  $url="https://signin.ebay.co.uk/ws/eBayISAPI.dll?co_partnerId=2&amp;siteid=3&amp;UsingSSL=1"; 
  
  $gacookie="/var/www/barcode/cookie/cookie.txt";
  $postdata = 'userid='. $username .':pass='. $password;
  
  $ch = curl_init(); 
  curl_setopt ($ch, CURLOPT_URL, $url); 
  curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 
  curl_setopt ($ch, CURLOPT_TIMEOUT, 60); 
  curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); 
  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
  curl_setopt ($ch, CURLOPT_COOKIEJAR, $gacookie); 
  curl_setopt ($ch, CURLOPT_COOKIEFILE, $gacookie);
  curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata); 
  curl_setopt ($ch, CURLOPT_POST, 1); 
  $AskApache_result = curl_exec ($ch); 
  curl_close($ch); 
  
  echo $AskApache_result;
  </code></pre>
  
  <p>Is it possible to login to ebay using php cURL by username and password or tokens?</p>