Is curl_easy_perform() synchronous or asynchronous?

前端 未结 1 867
春和景丽
春和景丽 2020-12-29 09:15

I am using curl to send POST and GET requests and I use callback functions to get the replies from these requests. These callbac

相关标签:
1条回答
  • 2020-12-29 09:42

    Does curl_easy_perform() block until the entire request is send AND the reply is processed by the callback function

    Yes, that is exactly what it does.

    (If you rather want a non-blocking behavior, libcurl's multi interface is the way to go.)

    0 讨论(0)
提交回复
热议问题