Esempio n. 1
0
 public static string GetString(string url)
 {
     try {
         var result = InternalUtils.CmGetData_v3(url, UserAgent);
         return(result == null ? null : Encoding.UTF8.GetString(result));
     } catch (Exception e) {
         Logging.Warning($"Cannot read as UTF8 from {url}: " + e);
         return(null);
     }
 }