added support for curl_httpclient