コード例 #1
0
        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);
        }
コード例 #2
0
 public static string GetVersion()
 {
     return(MarshalString.Utf8ToString(CurlNative.GetVersion()));
 }