Add timeout for curl operation