curl errors

Hi,

I'm currently implementing the serial management system on my website and I get a curl error while calling LimeLM::GetPKeyDetails

Warning: curl_setopt(): 143 is not a valid cURL handle resource on line 200Warning: curl_setopt(): 143 is not a valid cURL handle resource on line 201Warning: curl_setopt(): 143 is not a valid cURL handle resource on line 202Warning: curl_setopt(): 143 is not a valid cURL handle resource on line 203Warning: curl_setopt(): 143 is not a valid cURL handle resource on line 204Warning: curl_exec(): 143 is not a valid cURL handle resource on line 206

What I'm actually doing is calling LimeLM::GetPKeyDetails after getting successfully pKeys from LimeLM::FindPKey as I want to display each serials and their features for a user.

You need to call LimeLM::SetAPIKey("your API key here") before you make any function calls from LimeLM.php.

The errors you're getting are a result of you not call SetAPIKet. That is, the "not a valid cURL handle resource" the error is talking about is created when you call SetAPIKey(). So if you never call that function, the cURL resource is never created, and thus an error.

Does that make sense?

Ah ok...

I had the LimeLM::SetAPIKey set, but I just saw the LimeLM::CleanUp function call after it but before my LimeLM::GetPKeyDetails loop. I suppose I should move it after the LimeLM::GetPKeyDetails loop.

Thanks.