面对这个错误SSL代理没有为这个主机启用:在代理设置中启用,SSL位置当尝试点击HTTPS request.Please时建议我做什么。我是第一次运行,所以任何帮助都将不胜感激。
发布于 2018-03-07 06:52:39
您需要右键单击该请求,然后选择enable SSL Proxying。
此外,如果您正在使用NSURLSession和HTTPS,则需要实现以下内容:
-(void) URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential *))completionHandler {
if([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]){
NSURLCredential *credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust];
completionHandler(NSURLSessionAuthChallengeUseCredential,credential);
}
}如果不这样做,请求就会因握手中断而失败。您可能还需要安装Charles root SSL证书。从顶部菜单: Help -> SSL代理。
https://stackoverflow.com/questions/49127403
复制相似问题