cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl help about the time out

From: Julien Chaffraix <julien.chaffraix_at_gmail.com>
Date: Sun, 13 Feb 2011 09:24:12 -0800

Hi,

> But I hope that each visit can be done within 5 second.

There are several CURLOPT_*TIMEOUT options that could match. My
reading is that you want the whole transfer to be at most 5 seconds,
in which case CURLOPT_TIMEOUT is your friend. Make sure you read the
documentation (http://curl.haxx.se/libcurl/c/curl_easy_setopt.html)
before using it as there are some caveats and you may prefer another
timeout option.

Hope it helps,
Julien
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-13