使用System.Net.WebRequest.Create(url)抓取某網站信息時 ,出現“未能創建 SSL/TLS 安全通道”此條異常信息
解決方案
引用:using System.Net;
在請求之前插入TLS安全協議:System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
如圖:
使用System.Net.WebRequest.Create(url)抓取某網站信息時 ,出現“未能創建 SSL/TLS 安全通道”此條異常信息
解決方案
引用:using System.Net;
在請求之前插入TLS安全協議:System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
如圖:
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。