使用WebClient 发送https请求 使用WebClient发送请求时,并且是以https协议: WebClient webClient = new WebClient(); string result = webClient.DownloadString(url); error : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure chan…
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.IO; using System.Net; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.IO.Compression; using System.Net.Cac…