AFN 请求 https get

AFN 请求 https   get  
在pch文件
#define AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES
 
 
在请求数据那里
AFSecurityPolicy *securityPolicy = [AFSecurityPolicy defaultPolicy];
    securityPolicy.allowInvalidCertificates = YES;
   
    AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
    manager.securityPolicy = securityPolicy;  //https
 
 
posted @ 2015-11-06 08:31  望月Jarvis  阅读(206)  评论(0编辑  收藏  举报