得到了“ System.Net.Http.HttpRequestException:无法建立SSL连接”
..“收到的消息是意外的或格式错误的”
var response = client.SendAsync(httpRequestMessage).Result
ASP.NET Core 2.2
它适用于Visual Studio 2019(IIS Express),但不适用于Web服务器/ IIS。
在Wireshark中检查时,我可以看到差异。 IIS Express示例: TLSv1.2记录层:应用程序数据协议:http2
IIS示例:TLSv1.2记录层:应用程序数据协议:http-over-tls