cURL implementation