Yes i changed the link, but now i am getting
curl_setopt($curl, CURLOPT_URL, "https://www.amazon.com/gp/flex/sign-in/select.html");
curl_setopt($curl,CURLOPT_CONNECTTIMEOUT,20);
//curl_setopt($curl, CURLOPT_USERAGENT, $useragent);
curl_setopt($curl, CURLOPT_REFERER, "https://www.amazon.com/");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_COOKIESESSION, TRUE);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_COOKIEFILE,$user . "cookie.txt");
curl_setopt($curl, CURLOPT_COOKIEJAR,$user . "cookie.txt");
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 3);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 0); // dfalse earlier
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); //1 not to disp
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
$result = curl_exec($curl);
echo $result;
curl_close($curl);
I get this error
Please Enable Cookies to Continue
To continue shopping at Amazon.com, please enable cookies in your Web browser. Learn more about cookies and how to enable them.
Once you have enabled cookies in your browser, please click on the button below to return to the previous page.