Jump to content

yoandrey

New Members
  • Posts

    1
  • Joined

  • Last visited

yoandrey's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well I'm pretty new to php and curl so as always best way to learn it is by coding it ,so I started to code a script to remote login into amazon ,but I can even manage to load up the site . Any help ? Here is my code . <?php $url='https://source.amazon.com/forcelogin?returnToURL=https://www.amazon.com'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7"); curl_setopt($ch, CURLOPT_COOKIEFILE,'cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0 ); $data = curl_exec($ch); var_dump(curl_getinfo($ch)); echo curl_error($ch); curl_close($ch); ?> I can understand why is not working.
  2. Hy my name is Andrei ,and I just started to learn php ,I have so many questions ,I already started my first project.And I have some problems ,so soon i will come with a lot of questions to you guys .
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.