一个IOS9 网络问题
2015-06-14 12:24
495 查看
一个IOS9 网络问题
在ios9下,使用afnetworking执行http请求(http://apitest.XXX.com/Login),但是一直返回的是errorError Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo=0x7ffad9c498b0 {_kCFStreamErrorCodeKey=-9806, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?,
NSUnderlyingError=0x7ffadba9ae40 "An SSL error has occurred and a secure connection to the server cannot be made.", NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://apitest.XXX.com/Login,
NSErrorFailingURLStringKey=iption=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://apitest.XXX.com/Login, _kCFStreamErrorDomainKey=3}
报错说ssl的问题,但是我访问的是http啊,不是https
在ios8运行就没有这个问题,求解这是个什么情况啊
在info.plist文件里面手动添加 NSAppTransportSecurity, NSAllowsArbitraryLoads,应该就可以了,参考图片
图片:nGw3j.png
相关文章推荐
- 【iOS开发-网络】大文件的断点续传(断点下载)
- unity开发:Qt C++与unity之间UDP网络通信
- 【iOS开发-网络】关于大文件下载
- linux网络编程(unix域流式套接字)
- linux网络编程(组播)
- Android弱网测试中关于网络检测的一些借鉴方法
- linux 网络编程(广播的编程)
- linux网络编程(如何编写一个UDP通信程序)
- windows 8 设置hyper-v网络设置
- 一起学习CC3200系列教程之2个TCP_非阻塞及阻塞设置
- 计算机网络--物理层 的一点总结
- ARM硬件平台上基于UCOS移植Lwip网络协议栈
- ARM硬件平台上基于UCOS移植Lwip网络协议栈
- ARM硬件平台上基于UCOS移植Lwip网络协议栈 分类: 嵌入式开发学习 2015-06-14 10:33 55人阅读 评论(1) 收藏
- unity开发:Qt C++与unity之间TCP网络通信
- 网络传输
- BZOJ 3391: [Usaco2004 Dec]Tree Cutting网络破坏( dfs )
- TCP/IP详解_网际协议IP(二)_IP数据报格式
- TCP 报文
- 关于DNS DHCP FTP TFTP HTTP WEB