关闭tls1.0 会出现 : The underlying connection was closed: An unexpected error occurred on a receive. 解决方法: 在访问前设置一下或者写在global也可以 System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
HttpClient httpClient = new HttpClient();
关闭tls1.0 会出现 : The underlying connection was closed: An unexpected error occurred on a receive. 解决方法: 在访问前设置一下或者写在global也可以 System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
HttpClient httpClient = new HttpClient();