I ask me, how I can cancel an curl request:
res = curl_easy_perform(curl);
Use CURLOPT_PROGRESSFUNCTION callback and return non-zero to abort when you decide to. Maybe you could use some other more appropriate callbacks depending on your requirements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With