You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was try with the example of the git,
everythings is okay, but when I try to close the cURL , Always get the errors.
Warning: curl_close(): 4 is not a valid cURL handle resource in Curl.class.php on line 158
I try this simple code
<?phprequire_once'Curl.class.php';
$l = 'abcdef';
$b= 'defgh';
$curl = newCurl();
$curl->setUserAgent('');
$curl->setReferrer('');
$curl->post('http://localhost/testlink.php', array(
'l' => $l,
'b' => $b,
));
if ($curl->error) {
echo$curl->error_code;
}
else {
print_r($curl->response);
}
$curl->close(); // this will be thrown error, though I try to close with curl_close($curl->curl)
any help?
The text was updated successfully, but these errors were encountered:
I was try with the example of the git,
everythings is okay, but when I try to close the cURL , Always get the errors.
I try this simple code
any help?
The text was updated successfully, but these errors were encountered: