title: Getting the reponse body of a 302 HTTP redirect with NSURLConnection
body: <p>I'm sending a HTTP GET request to an URL using NSURLConnection with the delegate. The request gets redirected with a HTTP 302 and the new request is performed and the data retrieved.</p>
  
  <p>The problem is that I don't want the body of the redirected HTTP request but the content of the original redirect response.</p>
  
  <p>I've implemented <code>- (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response</code> which is called with the redirectRepsonse but <code>connection:didReceiveData</code> is not called until the new redirected request returns.</p>
  
  <p>I've found no solution so far except of using a CFNetwork based approach.</p>
  
  <p>Update:
  I've created a sample project with the problem for you to play with: <a href="https://github.com/snod/302RedirectTest" rel="nofollow">https://github.com/snod/302RedirectTest</a></p>
  
  <p>Any ideas?</p>