Support of a timeout on the curl operation