开发者

Authentication method calling problem on iPhone

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜