libcurl work around