title: XMLHttpRequest that is being Aborted
body: <p>I'm looking over a bit of code that deals with XHR. It looks like the first XHR.send() is being done successfully and then the subsequent one is Aborted before it gets to it's .send()</p>
  
  <p>Quick in dirty:</p>
  
  <pre><code>url = "http://192.168.1.1/cgi-bin/test.cgi";
  data = "1235,123,21,1232,12321,432";
  myXHR = new Array();
  
  for(var i = 0; i &lt; 2; i++) {
    myXHR[i] = new XMLHttpRequest();
    myXHR[i].open("POST", url, true);
  
    myXHR[i].onerror = function() {
     alert("Error occurred");
    };
  
    myXHR[i].onload = function() {
      if(myXHR[i].status == 200) {
        alert("Yay I worked");
        var data = myXHR[i].responseText;
      }
     };
  
     // do some setting up of XHR headers
  
     myXHR[i].send(data);
  
     myXHR[i] = null;
  }
  </code></pre>
  
  <p>What could be happening that would cause Firebug to show Abort before the second .send() is done?</p>