First attempt at REST api using c and libcurl