cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Getting the result of a transfer with curl_multi_perform()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Aug 2003 14:07:35 +0200 (CEST)

On Thu, 21 Aug 2003, Henrik Storner wrote:

> A simple question, but I couldn't find the answer in a man-page or the curl
> multi sample apps:
>
> When using the simple interface, curl_easy_perform() returns an error if the
> transfer fails (due to dns problems, timeouts etc.)
>
> How do I get that information when using the multi-interface?

You use curl_multi_info_read().

> I.e. how can I tell which of the many transfers I did that succeeded, and
> which ones failed - and how can I pick up the errorcodes for each transfer
> that failed ?

Each call to the function above will return a pointer to a struct, where one
of the fields is the single easy-handle's return code.

If you can come up with a good way to add this to an example code, please let
us know!

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
Received on 2003-08-22