note 25142 added to function.curl-error
| From: | kav at farpost dot com | Date: | Thu, 12 Sep 2002 00:19:15 +0000 |
| Subject: | note 25142 added to function.curl-error | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36555@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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
--
http://www.php.net/manual/en/function.curl-error.php
http://master.php.net/manage/user-notes.php?action=edit+25142
http://master.php.net/manage/user-notes.php?action=delete+25142
http://master.php.net/manage/user-notes.php?action=reject+25142