I need to be able to login to the ebay web site with a php script. I know you can simulate a browser with both Snoopy and Curl to log into an ebay account.
When I go the ebay site it does not log me in. Here is my code. Who can help.
include "include/Snoopy.class.php";
$snoopy = new Snoopy;
// declare variables
$pageNum = 1;
//login part
$activeListings = "http://k2b-bulk.ebay.com/ws/eBayISAPI.dll?ListingConsole&searchField=ItemTitle¤tpage=LCActive&StoreCategory=9523193010&pageNumber=" . $pageNum;
$submit_url = "https://signin.ebay.com/ws/eBayISAPI.dll?SellItem";
$submit_vars["userid"] = "turquoisepueblo"; //username
$submit_vars["pass"] = "Turquoise1"; //password
$submit_vars["sgnBt"] = "submit";
$snoopy->submit($submit_url,$submit_vars);
print $snoopy->results;
if($snoopy->fetchtext($activeListings)){
echo "<PRE>".htmlspecialchars($snoopy->results)."</PRE>\n";
}
else
echo "error fetching document: ".$snoopy->error."\n";
?>