| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Getting and passing a cookie...
From: Paperstuff.com <contact_at_paperstuff.com>
Date: Sun, 16 Feb 2003 17:26:11 -0800
I need this fixed within 48 hours. We have a PHP script to upload auctions to eBay. They changed their login page and we can't get logged in now. We are able to get the cookie, but don't know how to write it to a file on our server. Also, how to pass it back. If this script works, you can then go to www.ebay.com and on the top left it will say 'log out' - which means you are now logged in. It shouldn't be hard, but we are just stumped. USERNAME and PASS have been inserted where you need to put a working username and password. Registration is free, so it is easiest if you sign up for an account if you don't already have one.
Thanks in advance,
Here is the code:
=================================
# Prepare curl to post to login page at http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll
ob_start(); // prevent any output
echo "Setting cookies...<br>";
#setcookies();
$ch = curl_init();
$buf2 = curl_exec($ch);
curl_close($ch);
?>
Aaron Morris
-------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info