在iphone上实现https链接,post xml数据并接受返回的xml数据,用了NSMutableRequest NSURLConnection建立链接,但是有错误信息提示:NSURLErrorDomain error -1012 The certificate for this server is invalid. You might be connecting to a server that is pretending to be \U201c10.0.132.201\U201d which could put your confidential information at risk。链接的服务器是我自己配置的https服务器。
哪位大大知道,路过给点建议和解决方法,谢谢。
哪位大大知道,路过给点建议和解决方法,谢谢。
解决方案 »
- 苹果有提供让我获知玩家以前是否安装过我的app的接口么?
- 新手入门,关于xcode4.3下非storyboard的single view问题
- 关于苹果系统的安装问题
- xcode4.2 storyboard点击editor 视图编辑界面出不来了
- 写了点关于iPhone开发技巧,有兴趣的朋友来看看
- 关于《Cocoa入门 使用objective-c》的第四章“将文件内容读入字符串”
- 【视频通话】请问iOS下可以用google hangout API来开发视频通话app么?
- 问题标签用户 UItableView 点击不回调didSelect
- sql语句为什么执行没效果呢,也不报错
- 请问 Fix issue 证书为什么下载错
- 中文转换
- retainCount出现预料之外的结果
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
在函数中写上
if ([error code] != -1012) {
return;
}我自己没有试验环境,如果这个办法可行,请告知我,多谢!
- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
这两个delegate method。