Asp.Net报https请求报传输流收到意外的 EOF 或 0 个字节
.net framework版本太低,改为.net 4.5以上版本即可。 framework4.5以下版本SecurityProtocolType定义的TLS协议是1.0的,4.5以上是有1.2版本。
或者发送HTTPS请求前加入下行代码解决问题
ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;
转载于:
https://www.cnblogs.com/webapi/p/10909011.html

浙公网安备 33010602011771号