cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Ebay.com login problem

From: Imran Khalid <imranlink_at_hotmail.com>
Date: Wed, 6 Aug 2003 19:28:39 +0500

Hi,

 I am getting error while sign in on http://www.ebay.com site by using CURL.

My ebay ID = saira2majid
Password = saira123

The code i am using is as below

////////////////////////////////////////////////////////////// Ebay login

$LOGINURL = "http://signin.ebay.com/aw-cgi/eBayISAPI.dll";
$post_fields =
"MfcISAPICommand=SignInWelcome&siteid=0&co_partnerId=2&UsingSSL=0&ru=&pp=&pa
1=&pa2=&pa3=&i1=-1&pageType=559&userid=saira2majid&pass=saira123&submit=Sign
In";
$agent = "up.b";
$header[] = "Accept: text/vnd.wap.wml,*.*";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$LOGINURL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie\cookb");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie\cookb");

$result = curl_exec ($ch);
curl_close ($ch);
echo ($result );

//////////////////////////////////////////////////////////////

When i run above code, its created cookie file but on the page it shows
cookie disable login fail.
Please help me and let me know where i am doing mistake.

Best regards,
Imran Khalid
imranlink_at_hotmail.com
http://imrankhalid.5u.com
Res :- +92.437.602955

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-06