cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: no content-length given in response header

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Tue, 27 Mar 2007 16:03:06 -0500

> Does curl have a callback or something that will alert me when the request
> has been completed?

If you are using a single curl handle, you will know that
the transfer is complete when curl_easy_perform returns.

If you are using the curl multi interface, you can test the
value of the third argument of curl_multi_perform or
curl_multi_socket to see if the value of running_handles has
changed. If it has, then it's time to call curl_multi_info_read
to find out which easy handle has completed.

 - Jeff
Received on 2007-03-27