cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_TIMEOUT

From: Emil Romanus <sdac.bithack_at_gmail.com>
Date: Mon, 5 Nov 2007 02:15:13 +0000

2007/11/4, nf2 <nf2_at_scheinwelt.at>:
> how can i set a timout for the data connections?

You put the answer to your own question in the topic of this thread.
Use curl_easy_setopt() to set the option in question to any number of
seconds you want libcurl to wait before timeout.

CURLOPT_TIMEOUT applies to the whole transfer. There's also
CURLOPT_CONNECTTIMEOUT, which applies to the time it takes to
establish the connection.

Consider bookmarking the following URL:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

Good luck,
Emil
Received on 2007-11-05