gpt4 book ai didi

ios - 获取 CFNetwork SSLHandshake 失败 (-9806) 错误

转载 作者:技术小花猫 更新时间:2023-10-29 10:38:09 27 4
gpt4 key购买 nike

我正在尝试使用

调用我的 url
NSDictionary *landingDetails=[appDelegate landingPage];

NSString *devinf=[UIDevice currentDevice].systemVersion;
NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];

NSMutableDictionary *reqDict=[NSMutableDictionary dictionary];
[reqDict setObject:@"refillByScan" forKey:@"appId"];
[reqDict setObject:@"extest1" forKey:@"affId"];
[reqDict setObject:[landingDetails objectForKey:@"token"] forKey:@"token"];
[reqDict setObject:@"0124400-59382" forKey:@"rxNo"];//medication or prescription id
[reqDict setObject:@"appName://handleControlFromScanRefill" forKey:@"appCallBackScheme"];
[reqDict setObject:@"callBackAction" forKey:@"appCallBackAction"];
[reqDict setObject:@"chkExpRx" forKey:@"act"];
[reqDict setObject:@"" forKey:@"trackingId"];
[reqDict setObject:devinf forKey:@"devinf"];
[reqDict setObject:appVersion forKey:@"appver"];

NSString *landingUrl=[landingDetails objectForKey:@"landingUrl"];//my url
request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:landingUrl]];
NSString *jsonRequest = [reqDict JSONRepresentation];
NSLog(@"jsonRequest is %@", jsonRequest);
NSData *requestData = [NSData dataWithBytes:[jsonRequest UTF8String] length:[jsonRequest length]];

[request setHTTPMethod:@"POST"];
[request setValue:[NSString stringWithFormat:@"%d", [requestData length]] forHTTPHeaderField:@"Content-Length"];
[request setHTTPBody: requestData];

con=[[NSURLConnection alloc]initWithRequest:request delegate:self];
[con start];

我在我的日志中收到这个错误

2013-11-27 19:43:30.754 WallGreen[5594:3a03] CFNetwork SSLHandshake failed (-9806)
2013-11-27 19:43:31.273 WallGreen[5594:3a03] CFNetwork SSLHandshake failed (-9806)
2013-11-27 19:43:31.799 WallGreen[5594:3a03] CFNetwork SSLHandshake failed (-9806)
2013-11-27 19:43:31.800 WallGreen[5594:3a03] NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806)

最佳答案

FWIW:我得到了相同的错误号,这是由于证书过期,所以这是问题的另一个潜在来源。

关于ios - 获取 CFNetwork SSLHandshake 失败 (-9806) 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20244815/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com