title: Titanium XHR cannot connect the server
body: <p>I' trying to let android app using titanium connect the localhost via xhr, here is the code:  </p>
  
  <pre><code>    function e (){
      var xhr = Titanium.Network.createHTTPClient();
      xhr.onload = function()
      {
          alert(xhr.responseText);
       };
      xhr.onerror = function()
      {
          alert("Error");
      };
      xhr.open("GET","http://localhost/test.php");
      xhr.send();}  
  </code></pre>
  
  <p>I get an error, and this appears in the process trace:  </p>
  
  <blockquote>
    <p>I/TiHttpClient(  211): (TiHttpClient-1) [16,27717] Sending error
    Connection to <a href="http://localhost" rel="nofollow">http://localhost</a> refused</p>
  </blockquote>