title: How to read html source from a HTTPS url
body: <p>i am trying to read the html source code of a https url in c# with the following code:</p>
  
  <pre><code> WebClient webClient = new WebClient();
   string htmlString = w.DownloadString("https://www.targetUrl.com");
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/hmKlo.jpg" alt="enter image description here"></p>
  
  <p>this doesn't work for me as i get encoded html string. I tried using HtmlAgilityPack but with no help.</p>
  
  <pre><code>HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
  doc.LoadHtml(htmlString);
  </code></pre>