title: How do I use WebRequest to access an SSL encrypted site using HTTPS?
body: <p>I'm writing a program that reads content from a user provided URL. My problem is in the code that goes something like this:</p>
  <pre><code>Uri uri = new Uri(url);
  WebRequest webRequest = WebRequest.Create(uri);
  WebResponse webResponse = webRequest.GetResponse();
  ReadFrom(webResponse.GetResponseStream());
  </code></pre>
  <p>And this is breaking if the provided <em>url</em> is an <code>https://</code> URL. Can anyone help me with changing this code so that it will work with SSL encrypted content. Thanks.</p>