title: Android httpclient.execute return 404 in the second call?
body: <pre><code>HttpClient httpClient = new DefaultHttpClient();
  
  //this return OK
  HttpGet request = new HttpGet("http://www.xxx.com/pageA");
  String response = httpClient.execute(request, new BasicResponseHandler());
  
  //this return 404 error
  HttpGet request2 = new HttpGet("http://www.xxx.com/pageB");
  String response2 = httpClient.execute(request2, new BasicResponseHandler()); 
  </code></pre>
  
  <p>Why?<br>
  How can I execute http method for more than one page in the same function?</p>
  
  <p>In fact, pageA is a login page, pageB is what i want.<br>
  If get pageA only, it's OK (both in brower and in source code);<br>
  If get pageB only, it returns 302 (transfer to login page);<br>
  If get pageA and then get pageB in browser, it's OK.<br>
  If get pageA and then get pageB in source code (like above), an exception will<br> occur, and http status code is 404 (not 302).</p>
  
  <p>(i test these code in android 4.1 jellybean)</p>