remote login to Amazon using curl / php -


i've made myself test project log in amazon using curl , php, after hours of going in circles, think have admit defeat. wondering if tell me i've gone wrong code below?

besides that, downloaded amazon cookies , placed them in same directory php in file called 'cookie.txt'

$username ="";      // needs changed  $password = "";     // needs changed   $url = "";          // sign in url   $cookie = "cookie.txt";   $postdata = "email=".$username."&password=".$password;   $ch = curl_init();  curl_setopt ($ch, curlopt_url, $url);  curl_setopt ($ch, curlopt_ssl_verifypeer, false);  curl_setopt ($ch, curlopt_useragent, "mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.8.1.6) gecko/20070725 firefox/2.0.0.6");  curl_setopt ($ch, curlopt_timeout, 60);  curl_setopt ($ch, curlopt_followlocation, 0);  curl_setopt ($ch, curlopt_returntransfer, 1);  curl_setopt ($ch, curlopt_cookiefile, $cookie);  curl_setopt ($ch, curlopt_cookiejar, $cookie);  curl_setopt ($ch, curlopt_referer, $url);   curl_setopt ($ch, curlopt_postfields, $postdata);  curl_setopt ($ch, curlopt_post, 1);  $result = curl_exec ($ch);   echo $result;   curl_close($ch); 

do still want this, after amazon has come solution this, check out - https://login.amazon.com/


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -