标签: nsurlsession authenticationchallenge
我已经浏览了这个链接
Why is a HTTPS NSURLSession connection only challenged once per domain?
如果是NSURLConnection,则不会为每个请求调用didReceiveChallenge。在NSURLSession的情况下,每个请求都会调用它。如果它仅依赖于TLS会话缓存