note 25142 rejected from function.curl-error by zak

From: Date: Thu, 12 Sep 2002 01:04:28 +0000
Subject: note 25142 rejected from function.curl-error by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-36557@lists.php.net to get a copy of this message
hi! i have next problem! the function curl_errno($ch) - return error number 768! but in php documentation it error not described!, but function curl_error($ch) - return empy string!!!!!!! i use the ssl connection: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://${host}:2087" . $request); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, $TIMEOUT); $curlheaders[0] = "Authorization: WHM $authstr"; curl_setopt($ch,CURLOPT_HTTPHEADER,$curlheaders); if(trim($postvars)!="") { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$postvars); } $data=curl_exec ($ch); echo "before check error: $data<br>"; $str=curl_errno($ch); echo "error no: $str<br>"; if(curl_errno($ch)) { $err=curl_error($ch); echo "error: $err<br>"; $cpanelaccterr=curl_error($ch); return; } echo "data: $data<br>"; curl_close ($ch); please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

« previous php.notes (#36557) next »