cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_TIMEOUT

From: antel <voldor_at_gmail.com>
Date: Mon, 05 Nov 2007 03:18:26 +0000

Emil Romanus ha scritto:
> 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
>
>
Snippets

http://www.google.com/codesearch?hl=it&q=+CURLOPT_TIMEOUT+show:hEKmu1JM1Bk:AA60OiQnmIs:ppGBRcjJdig&sa=N&cd=8&ct=rc&cs_p=http://gentoo.osuosl.org/distfiles/SOAP-0.9.1.tgz&cs_f=SOAP-0.9.1/Transport/HTTP.php#first

http://www.google.com/codesearch?hl=it&q=+CURLOPT_TIMEOUT+show:S5VeCoN8Tf0:V0BUXYqISUU:7D98oFM7zo8&sa=N&cd=3&ct=rc&cs_p=http://www.joomlaworks.gr/files/mod_jw_srfr_1.1.zip&cs_f=mod_jw_srfr/simplepie.inc#first curl_setopt($fp, CURLOPT_ENCODING, '');
Received on 2007-11-05