i am trying to read the html source code of a https url in c# with the following code:
WebClient webClient = new WebClient();
string htmlString = w.DownloadString("https://www.targetUrl.com");
this doesn't work for me as i get encoded html string. I tried using HtmlAgilityPack but with no help.
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(htmlString);