0
我正在使用HTTPS到表單登錄頁面。 當通過HTTPS +表單登錄NSURLConnection
- (void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge`
攔截並提取通過
NSString *authenticationMethod = [[challenge protectionSpace] authenticationMethod];
使用的身份驗證方法,我得到以下
NSURLAuthenticationMethodServerTrust
但預期的結果應該是
NSURLAuthenticationMethodHTMLForm
這是由於使用HTTPS?