wrapper on top of libcurl (C)