Re: Disabling automatic handling of 'Set-Cookie:'
Date: Wed, 5 Apr 2006 16:18:10 +0530
On 4/5/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Wed, 5 Apr 2006, Ashu Sharma wrote:
> > I have a query about handling of cookies in libcurl. Is it possible to
> > disable automatic handling of cookies by libcurl. By default, on
> receiving a
> > HTTP header 'Set-Cookie:', libcurl adds the cookie for subsequent
> That is incorrect. By default libcurl ignores incoming cookies, you need
> enable it for it to be done. CURLOPT_COOKIEJAR and CURLOPT_COOKIEFILE
> > curl_easy_setopt(curlhandle, CURLOPT_HTTPHEADER, sList)
> > where one of the headers in sList is the cookie I want to set (I've
> > using CURLOPT_COOKIE too). This results in libcurl sending out two
> > headers to the server
> Yes, telling libcurl to deal with cookies and then provide your set is
> kind of
> confusing. What libcurl version is this? I was under the impression
> doesn't behave like that in recent versions.
Thanks for the response, Daniel.
After putting a breakpoint on curl_easy_setopt, I double-checked to see all
options that are being set. Neither COOKIEFILE nor COOKIEJAR are being set.
Following are the ones that are being set:
Could any of these be causing a problem?
My libcurl version is 7.13.1-3.
Received on 2006-04-05