cURL / Mailing Lists / curl-library / Single Mail



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

2007/11/4, nf2 <>:
> 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:

Good luck,
Received on 2007-11-05