First Version with libcurl