title: Query Wikipedia's API using AJAX (XMLHttpRequest)
body: <p>I am trying to implement a simple request to Wikipedia's API using AJAX (XMLHttpRequest). If I type the url in the address bar of Firefox, I get a neat XML, no sweat there. Yet, calling the exact same url with: </p>
  
  <pre><code>// this is my XMLHttpRequest object
  httpObjectMain.open("GET", "http://en.wikipedia.org/w/api.php?action=query&amp;format=xml&amp;prop=langlinks&amp;lllimit=500&amp;titles=kaas", true);
  httpObjectMain.send(null);
  </code></pre>
  
  <p>returns an empty response. According to FireBug, I get a 200 OK response, but the content is just empty.</p>
  
  <p>I suspect I might be missing something on the header of the GET http request.</p>
  
  <p>Help! (and thanks!)</p>