title: phonegap http error 404
body: <p>I am trying to connect to server for fetching data using ajax call inside phonegap app.
  But I am getting status 404 for every request I tried google.com, 10.0.2.2 (localhost on android).</p>
  
  <p>Here are steps I followed for creating application</p>
  
  <p>I created template application using phonegap command line as <code>phonegap create my-app</code></p>
  
  <p>Running application using <code>phonegap run android</code> ( This shows "device is ready" screen on emulator )</p>
  
  <p>Added following code for making an Ajax call to index.js - receivedEvent function</p>
  
  <pre><code>var xmlhttp =  new XMLHttpRequest();
  xmlhttp.onreadystatechange = function(){
      console.log('rdy state - '+ xmlhttp.readyState);
      console.log('status - '+ xmlhttp.status);
      console.log('text status - '+ xmlhttp.statusText);
      console.log('Response Text - '+ xmlhttp.responseText);
  }
  xmlhttp.open("GET","http://10.0.2.2/", true);
  xmlhttp.send();
  </code></pre>
  
  <p>I can access <code>http://10.0.2.2</code> from emulator browser. </p>
  
  <p>Here is Enviornment I am using</p>
  
  <p>Phonegap version - 3.4.0-0.19.8
  Android version - 4.4.2</p>
  
  <p>-- Vishal</p>