cURL / Mailing Lists / curl-library / Single Mail

curl-library

Cookies

From: Anton Fedorov <datacompboy_at_call2ru.com>
Date: Fri, 22 Feb 2008 17:35:44 +0600

Hello, curl-library.

  Hi all! I have try to connect to some server with curl multi
  interface.

  I do so:
 $c0 = curl_easy_init();
 $c0->setopt(CURLOPT_COOKIEJAR, $cj);
 $c0->setopt(CURLOPT_COOKIEFILE, $cj);
 $c0->setopt(CURLOPT_URL, "http://myserver/login?login=login&password=pass");
 $c1 = curl_easy_init();
 $c1->setopt(CURLOPT_COOKIEJAR, $cj);
 $c1->setopt(CURLOPT_COOKIEFILE, $cj);
 $c1->setopt(CURLOPT_URL, "http://myserver/securepage1");
 $c2 = curl_easy_init();
 $c2->setopt(CURLOPT_COOKIEJAR, $cj);
 $c2->setopt(CURLOPT_COOKIEFILE, $cj);
 $c2->setopt(CURLOPT_URL, "http://myserver/securepage1");
 $c0->perform(); // log into
 $cm = curl_multi_init();
 $cm->add_handle($c1);
 $cm->add_handle($c2);
 $cm->perform(); // get secure pages

 and that don't work -- it logged fine, but don't get content -- no
 cookies tranferred...

 how to do that correct?
 

-- 
Best regards,
  Anton
  Call2Ru Service
  datacompboy_at_call2ru.com

  • application/pgp-signature attachment: stored
Received on 2008-02-22