title: Webrequest Webresponse getting 403: forbidden
body: <p>I'm trying to get some more experience with c# so I want to make a small app using windows forms in Visual Studio. The app should get rocket launch times from <a href="https://launchlibrary.net" rel="nofollow noreferrer">https://launchlibrary.net</a> and use them in a countdown.
  I have no experience in getting data from the internet using c#, so I have no idea if what I'm doing is even slightly right. But this is the code I came up with after some research. </p>
  
  <pre><code>// Create a request for the URL. 
  WebRequest request = WebRequest.Create("https://launchlibrary.net/1.2/agency/5");
  request.Method = "GET";
  // Get the response.
  WebResponse response = request.GetResponse();
  // Display the status.
  MessageBox.Show(((HttpWebResponse)response).StatusDescription);
  // Get the stream containing content returned by the server.
  Stream dataStream = response.GetResponseStream();
  // Open the stream using a StreamReader for easy access.
  StreamReader reader = new StreamReader(dataStream);
  // Read the content.
  string responseFromTheServer = reader.ReadToEnd();
  // Display the content
  MessageBox.Show(responseFromTheServer);
  // Clean up the streams and the response.
  reader.Close();
  response.Close();
  </code></pre>
  
  <p>The problem is that at the line: </p>
  
  <pre><code>WebResponse response = request.GetResponse();
  </code></pre>
  
  <p>I'm getting the below error</p>
  
  <blockquote>
    <p>"The remote server returned an error (403) forbidden"</p>
  </blockquote>