cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Réf. : Re: Getting a cookie sent by a server

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 10 Oct 2001 08:45:39 +0200 (MET DST)

On Tue, 9 Oct 2001, Gilles Talbot wrote:

> i've upgraded to 7.9
> i tried to specifya file path with CURLOPT_COOKIEJAR. but when i send the
> request, i receive the answer, but i don't have no file with the cookies,
> and i know the server i sending a cookie

There's at least two things to consider:

1. There's a bug in 7.9 that makes received cookies without domain set not
   get stored properly in the cookiejar. (This is fixed in the pre-releases
   of 7.9.1).

2. You need to use CURLOPT_COOKIEFILE to activate the cookie parser,
   otherwise libcurl will ignore all incoming cookies. This is subject to
   change in the next release though.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-10-10