title: Connection 3G vs Wi-Fi Connection
body: <p>I'm develop a android app that consume a xml webservice. When connected in a wi-fi network works fine, but when connected in a 3G network, fail (http 404 not found).</p>
  
  <p>It's not happening only in device. To make tests, I create a main method in desktop and the problem occurs to. When I connected in Wifi network works and in 3G network fail.</p>
  
  <p>I see the HttpRequest header and his have same information, when in 3g or wifi.</p>
  
  <p>What can be? Help me!!</p>
  
  <pre><code>HttpParams httpParams = new BasicHttpParams();
  HttpConnectionParams.setConnectionTimeout(httpParams, 10000);
  HttpConnectionParams.setSoTimeout(httpParams, 10000);       
  
  System.setProperty("http.keepAlive", "false");
  HttpClient client = new DefaultHttpClient(httpParams);
  HttpGet get = new HttpGet(url);
  
  get.addHeader("Referer", "http://rast.sample.com/sample");
  get.addHeader("User-Agent","Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22");
  get.addHeader("Content-Type","application/x-www-form-urlencoded");
  get.addHeader("X-Requested-With","XMLHttpRequest11");
  get.addHeader("Accept","application/xml, text/xml, */*");
  get.addHeader("Cache-Control","no-cache"); // HTTP/1.1
  get.addHeader("Expires", "Sat, 26 Jul 1997 05:00:00 GMT");
  get.addHeader("Connection","close");
  
  HttpResponse resp = client.execute(get);
  HttpEntity entityResp = resp.getEntity();
  </code></pre>
  
  <p>I think that the problem can be 3G cache, how I can clean?</p>
  
  <p>Edit:
  I realized that with 3G sometimes works and sometimes not.</p>
  
  <p>I make the following test:
  With two devices on 3G, one working and another not. I enable the device was working as Access Point for the device that not working (share the 3G network of working device) then the other device work too.</p>
  
  <p>Edit2: 
  I realized that navigating the site, connected to the 3G network, it works. What can it be?</p>