RestSharp - Ignore SSL errors

 

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

 

项目启动时,添加 

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

 

 

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

posted @ 2018-06-13 16:46  天王星天  阅读(440)  评论(0编辑  收藏  举报