项目启动时,添加下面代码:
项目启动时,添加 public App() { ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true; }
https://stackoverflow.com/questions/10397736/restsharp-ignore-ssl-errors
项目启动时,添加下面代码:
项目启动时,添加 public App() { ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true; }
https://stackoverflow.com/questions/10397736/restsharp-ignore-ssl-errors