cURL / Mailing Lists / curl-users / Single Mail


RE: SSL + Cookies

From: insaini <>
Date: Sun, 23 Mar 2008 22:14:56 -0400

-----Original Message-----
[] On Behalf Of Daniel Stenberg
Sent: March 23, 2008 6:58 PM
To: the curl tool
Subject: Re: SSL + Cookies

On Sun, 23 Mar 2008, insaini wrote:

> Now if I go directly to the login page that information is necessary and
> wont be there.. and that's why the redirect is needed.. however once the
> redirect is done (ie FOLLOWLOCATION, 1) the cookies are not being saved to

> the jar ..

Can you really see the cookies getting received by curl in the headers, but
not end up in the cookie jar output file? Or are they stored in the file but

then not sent off in the subsequent request?

What curl version on what platform?

  Commercial curl and libcurl Technical Support:
The cookies are not received by curl at all and do not get stored in the
cookie jar.  I have tried using preg_match to extract the cookies directly
from the response and there is nothing except for the JSESSIONID even though
in Live Http Headers for firefox it says there are ..
The curl version is 7.18  (I finally got it installed and compiled with php
It may be easier for you to try it yourself actually..
This is the link
it will redirect you to the login page (although Im not entirely sure that
it is an actual redirect) ..
using Live HTTP headers you'll see exactly what I mean
Received on 2008-03-24