added the cURL client implementation