internal string GetError(CurlCode code) { if (code == CurlCode.NotInitialized) { return("Curl Global not initialized"); } string error = MarshalString.Utf8ToString(_errorBuffer); return(string.IsNullOrEmpty(error) ? MarshalString.Utf8ToString(CurlNative.EasyStrError(code)) : error); }
public static string GetVersion() { return(MarshalString.Utf8ToString(CurlNative.GetVersion())); }