开发者

Authentication method calling problem on iPhone

开发者 https://www.devze.com 2023-02-05 16:48 出处:网络
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

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 w开发者_StackOverflow社区ere setted to previous request. I've already tried to add '#' to the end of the URL, clear cookies, but nothing works.


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


The thing is that those methods from protocol fires only once for the first request and for next requests not.

0

精彩评论

暂无评论...
验证码 换一张
取 消