cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cookies

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Feb 2008 13:02:32 +0100 (CET)

On Fri, 22 Feb 2008, Anton Fedorov wrote:

> Hi all! I have try to connect to some server with curl multi interface.

Is that the perl binding? What libcurl version on what operating system?

> and that don't work -- it logged fine, but don't get content -- no cookies
> tranferred...

It'd help a lot of if you'd also show us the headers you got back and what
request headers libcurl sent.

The main problem for you is that you create and do operations using three
different handles and they all have their own bucket of cookies. You'd need to
use the share interface to make multiple easy handles share cookies. The first
cookie jar file only gets populated once you close that handle, and you init
the other handles with that file name long before that it seems.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-02-22