Cancel libcurl easy handle
-
04-07-2019 - |
Question
Is there an easy way to cancel a curl_easy_perform from another thread?
Solution
You have to use the callback functions (write/read/progress) to perform the cancel. The other thread needs to set a flag and the callback function checks the flag and returns the proper value to cancel the operation.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow