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

curl-and-php

Re: ebay_login.php Example

From: Mike Willbanks <mike_at_bluedigitalink.com>
Date: Tue, 27 Apr 2004 00:49:26 -0500

If i remember correctly from the PHP manual you need a single file for
the cookiejar. And the file must already exist.

Something like "touch /tmp/cookiejar" would work then set that as the
cookie area.

Hope that helps,

Mike

> I am trying to learn how to log in to pages using curl and PHP, and
> tried to use the ebay example:
>
> http://curl.haxx.se/libcurl/php/examples/?ex=ebay_login.php
>
> ...but I am unable to make the ebay login script example work. eBay
> gives me an "The browser you are using is rejecting cookies" error.
> Note that I am changing the cookie path to:
> $cookie_file_path = "tmp";
>
> I receive the error even when the permissions for this directory are
> set to 777. I've also tried it with the path tmp\cookie, with and
> without a file "cookie" with 777 permissions already present. curl is
> enabled on the server and the PHP version is 4.3.3.
>
> Any help would be appreciated. If I am giving incomplete information
> let me know. Thank you :)
Received on 2004-04-27