Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl CLose is not a Valid CURL Handle #18

Closed
aufa opened this issue Jan 31, 2014 · 1 comment
Closed

Curl CLose is not a Valid CURL Handle #18

aufa opened this issue Jan 31, 2014 · 1 comment

Comments

@aufa
Copy link

aufa commented Jan 31, 2014

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

<?php
require_once 'Curl.class.php';
$l = 'abcdef';
$b= 'defgh';

$curl = new Curl();
$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?

@zachborboa
Copy link
Member

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants