标签: c# .net ssl tls1.2 webrequest
当我第一次通过https调用API时,会收到一条消息
“请求已中止:无法创建SSL / TLS安全通道”
如果我再次调用相同的网址,则会得到正确的响应。
我使用ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 我写了servicePoint.Expect100Continue = true; 但结果消息是相同的
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
servicePoint.Expect100Continue = true;