I have a method that created a NSURLRequest. If I load this NSURLRequest in a UIWebView, there are some redirections that I catch with - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType.
How can I intercept this redirections without load my request in a UIWebView ? (I do not want it at all)
Well, you have to tell us how you’re loading it to begin with. Are you using
NSURLConnection? Then use the-connection:willSendRequest:redirectResponse:delegate method. Be sure to read the docs to understand when it will be called. It is often called just because the framework tweaked your request, before actually communicating with anything, so not every invocation is a redirect.