Method to set the timeout for cURL connection