note 26507 deleted from ref.curl by jsheets

From: Date: Fri, 03 Jan 2003 05:00:53 +0000
Subject: note 26507 deleted from ref.curl by jsheets
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41585@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?

« previous php.notes (#41585) next »