The NSURLProtocolClient protocol includes a method, -URLProtocol:wasRedirectedToRequest:redirectResponse:
, which instances of NSURLProtocol subclasses are supposed to use to tell an URL protocol client that the request was redirected. However, I'm not sure whether the URL Protocol is then supposed to attempt to retrieve the resource from the redirected URL or let the client issue a new request for that resource.
Can anyone tell me what the original URL protocol object is supposed to do in the case of a redirect?