C#HttpClient关闭ssl(https)方法,暨System.Net.Http.WinHttpException: 发生了安全错误 解决方案

            var handler = new HttpClientHandler();
            handler.ServerCertificateCustomValidationCallback = delegate { return true; };

            var client = new HttpClient(handler);

猜你喜欢

转载自blog.csdn.net/fromfire2/article/details/85615401