Fixed libcurl code