title: Auto Redirection with Apache HttpClient
body: <p>I am using apache HttpClient with my Android 4.2 application. I have a requirement to support auto-redirection of requests. I am setting the auto redirection flag on the request as follows:</p>
  
  <pre><code>HttpClientParams.setRedirecting(this.request.getParams(), isAutoRedirectEnabled);
  </code></pre>
  
  <p>The requests redirect fine as long as the request is a simple GET. When I send a POST request with a certain payload, the first request goes as a POST, but when that requests gets redirected, the auto redirect logic sends a GET request to the redirected URL.</p>
  
  <p>I tried setting the HttpRedirectHandler to the DefaultHttpClient and handle the re-directions manually, but this is a very hacky way of doing it and I am discovering issues in it already. Is there another way?</p>