note 15392 rejected and deleted from function.curl-setopt by zak

From: Date: Tue, 18 Sep 2001 14:39:13 +0000
Subject: note 15392 rejected and deleted from function.curl-setopt by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-18129@lists.php.net to get a copy of this message
I notcied a bug in libcurl + PHP 4.0.6.. I can fetch a document via libcurl just fine. If I try to do it with SSL it returns a 0 byte file, on the same server and everything! I have tried to force SSL versions as well. The client + server are both running FreeBSD. Here is the code I tried. I have also tried GET and POST.. no difference.. anything SSL-releated seems to return 0 bytes. <PRE> $ch = curl_init(); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_URL,"https://www.somesite.com/mycgi.cgi"); //curl_setopt($ch,CURLOPT_SSLVERSION,3); //curl_setopt($ch,CURLOPT_POSTFIELDS,"stuff=1"); $result=curl_exec ($ch); curl_close ($ch); echo $result; </PRE>

« previous php.notes (#18129) next »