cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl loop

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 21 Sep 2010 23:40:53 -0700

On Tue, Sep 21, 2010 at 10:10:20PM -0400, Tyler Brock wrote:
> I'm trying to use curl to login and retrieve information from a couple of web
> pages in a loop using a two step process.
>
> The first curl logs in to the page.
> The second curl takes the same curl handle and gets another page which is
> stored in memory to later be parsed by another function that I wrote.
>
> The problem I'm having is that individually each run of the loop works when
> isolated, but when you do two or more in a row it fails to login successfully.

Could it be related to stale cookies being left over from previous runs
of the loop?

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-22