note 15392 added to function.curl-setopt

From: Date: Fri, 07 Sep 2001 19:14:06 +0000
Subject: note 15392 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-17786@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> http://www.php.net/manual/en/function.curl-setopt.php

« previous php.notes (#17786) next »