title: Https access to Racing Post
body: <p>I am trying to access the Racing Post website from an app - example <a href="https://www.racingpost.com/results/2017-10-25" rel="nofollow noreferrer">racing post results</a></p>
  
  <p>Accessing this from the browsers is fine, but from my app I keep getting issues. This is my final code:</p>
  
  <pre><code>    private string download(string url)
      {
          WebResponse response = null;
  
          try
          {
              ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
              ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) =&gt; true;
              //{"The request was aborted: Could not create SSL/TLS secure channel."}
              // Setup our Web request
              HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
              //request.CookieContainer = new CookieContainer();
              //request.Timeout = timeoutSeconds * 1000;
  
              // Retrieve data from request
              response = request.GetResponse();
  
              System.IO.Stream streamReceive = response.GetResponseStream();
              System.Text.Encoding encoding = System.Text.Encoding.UTF8;
              System.IO.StreamReader streamRead = new System.IO.StreamReader(streamReceive, encoding);
  
              // return the retrieved HTML
              string s = streamRead.ReadToEnd();
  
              return s;
          }
          catch (Exception ex)
          {
              throw new Exception("Problem retrieving the webpage", ex);
          }
          finally
          {
              // Check if exists, then close the response.
              if (response != null)
              {
                  response.Close();
              }
          }
      }
  </code></pre>
  
  <p>This is failing with: "The remote server returned an error: (403) Forbidden."</p>