title: Listing all repositories using GitHub - C#
body: <p>I have a problem with my script in C#. I've tried list all public repositories in GitHub. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>             HttpWebRequest request = WebRequest.Create("https://api.github.com/repositories?since=364") as HttpWebRequest;
          request.Method = "GET";
          request.Proxy = null;
          request.ContentType = "application/json";
  
          using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
          {
              StreamReader reader = new StreamReader(response.GetResponseStream());
  
                  content1= reader.ReadToEnd();
  
          }
  </code></pre>
  
  <p>And i have error:</p>
  
  <pre><code>System.Net.WebException was unhandled by user code
   The server committed a protocol violation. Section=ResponseStatusLine
   Source=System
  
  
  An exception of type 'System.Net.WebException' occurred in System.dll but was not handled in user code
  </code></pre>
  
  <p>on line with using....</p>
  
  <p>Thanks for your help.</p>