Tell me, can anyone encountered download via HttpClient address http://www.wordreference.com/definition/like in response to getting it
Is that encrypted content that the browser opens through scripts? Or is it something else? Just in case, I explain: I tried my code on other sites, and everything is OK there, and I doubt that the coding is the case.
PS HttpClientHandler should be used to HttpClientHandler
private static async Task<string> GetAnswerAsync(string request) { string result = String.Empty; HttpClientHandler handler = new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }; using (HttpClient client = new HttpClient(handler)) using (var response = await client.GetAsync(request)) { response.EnsureSuccessStatusCode(); result = await response.Content.ReadAsStringAsync(); } return result; } 