解决“请求被中止: 未能创建 SSL/TLS 安全通道”的问题

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);

posted @ 2022-03-28 15:48  Forest-8023  阅读(220)  评论(0)    收藏  举报