Checking for cuRL constant CURLE_OK instead of just 0