curl-and-php
Re: cURL and cookies
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 5 Sep 2002 09:11:09 +0200 (MET DST)
Date: Thu, 5 Sep 2002 09:11:09 +0200 (MET DST)
On Wed, 4 Sep 2002, Jeff Schwartz wrote:
> I'm trying to use cURL to log into a site, get the cookies then use those
> cookies as I move through the site.
>
> I'm receiving the cookies in a file but either they're not being sent when
> the script goes to the next page or they need to be formatted differently.
>
> Has anyone done this already?
curl has a full cookie parser and "engine" built-in. You just need to make
sure you use it.
There's one example of cookiejar usage here:
http://curl.haxx.se/libcurl/php/examples/?ex=cookiejar.php
-- Daniel Stenberg -- curl related mails on curl related mailing lists please ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390Received on 2002-09-05