RestSharp - Ignore SSL errors

Posted tianciliangen

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RestSharp - Ignore SSL errors相关的知识,希望对你有一定的参考价值。

 

项目启动时,添加下面代码:

 

技术分享图片
项目启动时,添加 

public App()
        {
            ServicePointManager.ServerCertificateValidationCallback +=
        (sender, certificate, chain, sslPolicyErrors) => true;
        }
View Code

 

 

https://stackoverflow.com/questions/10397736/restsharp-ignore-ssl-errors

以上是关于RestSharp - Ignore SSL errors的主要内容,如果未能解决你的问题,请参考以下文章