title: Github OAuth : The remote server returned an error (403) Forbidden
body: <p>I've managed to receive the <code>access_token</code>, browsing to <code>https://api.github.com/user?access_token=ACCESS_TOKEN_HERE</code> works very well and the browser displays all my information.</p>
  
  <p>But when I'm trying to get these information with ASP.NET (C#), I get an error:</p>
  
  <blockquote>
    <p>The remote server returned an error (403) Forbidden.</p>
  </blockquote>
  
  <p>Here is the code I'm using to make an Get Request.</p>
  
  <pre><code>WebRequest request = WebRequest.Create("https://api.github.com/user?access_token=" + access_token);
  request.Method = "GET";
  WebResponse response = request.GetResponse(); //Error Here
  Stream dataStream = response.GetResponseStream();
  StreamReader reader = new StreamReader(dataStream);
  string result = reader.ReadToEnd();
  </code></pre>