iOS9网络请求失败问题
2015-09-18 19:35
417 查看
今天刚升级到iOS9,发现网络请求失败,下面是错误代码
CFNetwork SSLHandshake failed (-9847)
2015-09-18 19:22:03.385 ViPiao2.0-Iphone[262:9101] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9847)
看了苹果官方说明
ATS prevents accidental disclosure, provides secure default behavior, and is easy to adopt. You
should adopt ATS as soon as possible, regardless of whether you’re creating a new app or updating an existing one. If you’re developing a new app, you should use HTTPS exclusively. If you have an existing app, you should use HTTPS as much as you can right
now, and create a plan for migrating the rest of your app as soon as possible.
apple建议我们用HTTPS,我们只要老版本的项目只需要在plist文件中配置
CFNetwork SSLHandshake failed (-9847)
2015-09-18 19:22:03.385 ViPiao2.0-Iphone[262:9101] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9847)
看了苹果官方说明
ATS prevents accidental disclosure, provides secure default behavior, and is easy to adopt. You
should adopt ATS as soon as possible, regardless of whether you’re creating a new app or updating an existing one. If you’re developing a new app, you should use HTTPS exclusively. If you have an existing app, you should use HTTPS as much as you can right
now, and create a plan for migrating the rest of your app as soon as possible.
apple建议我们用HTTPS,我们只要老版本的项目只需要在plist文件中配置
相关文章推荐
- iOS9 http 网络请求
- POJ 1087 A Plug for UNIX (网络流)
- TCP/IP协议原理与应用笔记03:IP地址分类
- 【计算机网络】wireshark抓包分析2
- HTTP 请求头中的 X-Forwarded-For
- HTTP 请求头中的 X-Forwarded-For
- Cobbler实现自动化无人值守网络批量安装部署Linux系统
- 使用Nginx为Leanote配置Https
- 在nginx配置部分https
- FreeBSD IPFW 防火墙的安装和设置
- MAC使用Parallels克隆虚拟机网络不可用的解决方法
- 网络协议
- 编译安装httpd后利用脚本修改参数
- Xcode更新之后提示App Transport Security has blocked a cleartext HTTP(http://)resource load since it is ...
- http://ogldev.atspace.co.uk/
- 提取神经网络数学表达式
- Android 各大网络请求库的比较及实战
- Android-网络框架
- 网络视频带宽计算方法
- XUtils开源项目---HttpUtils网络处理