curl-and-php
Curl not working on win-XP where is works on linux.
Date: Mon, 21 Feb 2005 05:48:30 -0500
I'm running this script on both linux box and XP
$LOGINURL = "http://signin.ebay.com/aw-cgi/eBayISAPI.dll?SignIn";
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.4) Gecko/20030624 Netscape/7.1 (ax)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$LOGINURL);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
$result = curl_exec ($ch);
echo ("Logged in ! <br> $result");
curl_close ($ch);
On the linux it pulls the page to the $ch
on the XP the $ch is empty !
Any ideas ?
this is driving me nuts :)
Thanks,
Oren.
Received on 2005-02-21