That delegate method, for iOS, is defined in NSURLConnectionDataDelegate
and gives you the opportunity to control how the redirect is handled (you could cancel it, change it or return it unchanged).
In your case you want to let it request the URL as returned by the redirect response so a simple implementation would be:
- (NSURLRequest *)connection: (NSURLConnection *)inConnection
willSendRequest: (NSURLRequest *)inRequest
redirectResponse: (NSURLResponse *)inRedirectResponse {
return inRequest;
}
I believe this should be the default behaviour though, so if the request isn't being processed, the problem is likely elsewhere...