As soon as I add the request:willRedirectToUrl: method in the delegate the request stops downloading from the redirected url, if I don’t implement the method it continues to download the file from the new url. Its driving me crazy, why is this happening?
As soon as I add the request:willRedirectToUrl: method in the delegate the request stops
Share
If you implement the delegate willRedirectToUrl, the delegate gets full control of what will happen on a redirection, so it needs to take the necessary action – from the .h:
So you just need to call:
passing the newURL.