When I have established SSL connection with NSURLConnection, I need to change certificates in credentials to make new request. But when I make new request, canAuthenticateAgainstProtectionSpace method don't fires and request use credentials which were setted to previous request. I've already tried to add '#' to the end of the URL, clear cookies, but nothing works.
Asked
Active
Viewed 347 times
2 Answers
0
Have you impelemented the NSURLConnection delegate protocol,because that can be the only known cause why the canAuthenticateAgainstProtectionSpace method is not fired.
Take a look at
@protocol NSURLAuthenticationChallengeSender <NSObject>
in the Apple documentation
Also have a look at this thread.
Cheers
0
The thing is that those methods from protocol fires only once for the first request and for next requests not.

Siap
- 1
- 1