cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

RE: HTTPS and cURL in PHP

From: Frank <frank_at_optimarc.com>
Date: Mon, 6 Sep 2004 17:35:12 +1000

Dear Daniel

Thanks for your response.
I see the cookie you mentioned but a weird thing is that:
- if I delete my cookies
- go straight to sign up page
https://smc2.sitematch.overture.com/session/login.html on browser I can
still sign up and no cookies were written on my cookies folder

I did try to start the cookie parser as you mentioned and use the same
handle to call the login page but I got same error.

Cheers

frank

-----Original Message-----
From: curl-and-php-bounces_at_cool.haxx.se
[mailto:curl-and-php-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Monday, 6 September 2004 3:55 PM
To: using curl with PHP
Subject: RE: HTTPS and cURL in PHP

On Mon, 6 Sep 2004, Frank wrote:

> I also tried curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/cookieFile")
> But the file is empty after running

CURLOPT_COOKIEFILE is only used to *read* cookies from a file, it never
writes
them. If you want curl to write the cookies you use CURLOPT_COOKIEJAR,
and
then the cookies will be written to the given file name when the curl
handle
is closed.

> Any suggestions? .. For more information I want to log in to
> https://smc2.inktomi.com/

When I reach the login form page, it:

1) expects a post sent to
https://smc2.sitematch.overture.com/session/login.html

2) it has already set a cookie (named "SMC_SESSION") in my browser that
it
most certainly checks for when the login procedure is processed by the
server.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-06