RestSharp - Ignore SSL errors

 

項目啓動時,添加下面代碼:ide

 

項目啓動時,添加 

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

 

 

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

相關文章
相關標籤/搜索