curl::option CurlHandle,"CONNECTTIMEOUT",10
Pass an integer as parameter. It should contain the maximum time in seconds that you allow the connection to the server to take. This only limits the connection phase, once it has connected, this option is of no more use. Set to zero to disable connection timeout (it will then only timeout on the system's internal timeouts). Specifying no value for this option is the same as specifying zero as all integer value options. See also the TIMEOUT option.
NOTE that this does not work in multi-threaded programs!