I'm trying to get the HTML source code from a web page with this code:
HttpClient httpClient = new();
httpClient.DefaultRequestHeaders.Add("user-agent", "search app");
var sourceCode = await httpClient.GetStringAsync(url);
I tried with many web pages, and I didn't have any problem. Everything works fine, and the result is the HTML content of the web page as a string.
But now I'm trying with Amazon (in the URL use for example "https://www.amazon.com") and the result came encrypted. I can't even copy the result to show you.
What is happening and how can I solve this?