note 26507 added to ref.curl
| From: | mwartman at betterbuilt dot com | Date: | Fri, 01 Nov 2002 21:54:12 +0000 |
| Subject: | note 26507 added to ref.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38889@lists.php.net to get a copy of this message | ||
maybe someone here can help me. god knows i've tried everywhere else. i am trying to pull a
file securely using https. when i do this code
$ch = curl_init ("http://server.com/file.req");
$fp = fopen ("localfile.req", "a+");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
fclose ($fp);
it works fine
but when i do
$ch = curl_init ("http://server.com/file.req");
$fp = fopen ("localfile.req", "a+");
curl_setopt ($ch, CURLOPT_SSLCERT, "privkey.pem");
curl_setopt ($ch, CURLOPT_SSLCERTPASSWD, "pass");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
fclose ($fp);
it doesn't work. anybody have any solutions as to why?
--
http://www.php.net/manual/en/ref.curl.php
http://master.php.net/manage/user-notes.php?action=edit+26507
http://master.php.net/manage/user-notes.php?action=delete+26507
http://master.php.net/manage/user-notes.php?action=reject+26507