asp.net core IHttpClientFactroy 进行SSL(https)请求时注入ConfigurePrimaryHttpMessageHandler解决https请求错误
摘要:
builder.Services.AddHttpClient("https").ConfigurePrimaryHttpMessageHandler(c => { var hander = new HttpClientHandler(); hander.ServerCertificateCustom 阅读全文
posted @ 2022-03-21 21:56 跨界农民工 阅读(356) 评论(0) 推荐(0) 编辑