protected string HttpGet(string uri) { var result = _client.GetAsync(uri).Result; if (result.Content.Headers.ContentEncoding.Contains("gzip")) { var rawResult = result.Content.ReadAsByteArrayAsync().Result; var finResult = GZipHelper.Decompress_GZip(rawResult); return(Encoding.UTF8.GetString(finResult)); } return(result.Content.ReadAsStringAsync().Result); }