cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: SSL + Cookies

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

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] 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
it
> 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: http://haxx.se/curl.html
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
5.2.5)
It may be easier for you to try it yourself actually..
This is the link
https://est-oee.canadapost-postescanada.ca/shipping/estShipping.jsp?locale=e
n_CA&formId=110
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
Thanks
Jes
Received on 2008-03-24