Curl error: A libcurl function was given a bad argument - Rotary District