curl_xml: Add support for specifying a connection timeout