0
我們可以使用以下方法來超卡西尼嗎?因爲我知道這是非常好,IIS卡西尼SSL認證
- (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace {
return [protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust];
}
- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge {
if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust])
if ([trustedHosts containsObject:challenge.protectionSpace.host])
[challenge.sender useCredential:[NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust] forAuthenticationChallenge:challenge];
[challenge.sender continueWithoutCredentialForAuthenticationChallenge:challenge];
}
謝謝
你是對的,卡西尼沒有身份驗證和HTTPS,我也發現HTTPS可以使用ultiDev卡西尼網絡服務器使用HttpVPN代理...並感謝您的鏈接和您的評論。 – Pooja 2011-07-14 16:08:50