Libcurl instead of threads