title: Multiple HTTP Requests in WinRT / Win8
body: <p>Is it possible to send more than two HTTP requests concurrently in WinRT? I'm trying to load multiple JSON documents from a server and HttpWebRequest fails to respond after the second call. Here is a sample snippet that illustrates this:</p>
  
  <pre><code>protected async override void OnNavigatedTo(NavigationEventArgs e)
  {
      const string url = "http://www.bom.gov.au/fwo/IDV60901/IDV60901.94868.json";
      const int iterations = 3;
  
      var tasks = new List&lt;Task&gt;();
      var ticks = DateTime.Now.Ticks;
  
      for (var i = 0; i &lt; iterations; i++)
      {
          // Create unique URL by appending a generated number.
          var uniqueUrl = string.Format("{0}?v={1}", url, (i + ticks));
  
          // Create the request.
          var request = WebRequest.CreateHttp(uniqueUrl);
  
          // Create the async task and store it for later.
          var task = request.GetResponseAsync();
  
          tasks.Add(task);
      }
  
      // Await all tasks in collection.
      await Task.WhenAll(tasks);
  
  
  
      Debugger.Break(); // &lt;----- This will never break when iterations &gt; 2
  }
  </code></pre>
  
  <p>Put this code in a blank <strong><em>MainPage.xaml.cs</em></strong> and play around with the iterations value. If you set it to 2, then it works. Anything above that, it will fail.</p>
  
  <p><strong>NOTE</strong> :: Do not use Fiddler when testing this. Fiddler does something funny and it allows all these connections to go through. I don't know how nor why. You can test this yourself. If you run the code above with fiddler open, then success.</p>
  
  <p><strong>NOTE</strong> :: This is not real code. I'm only using this example to illustrate the issue.</p>