.Net Core HttpClient 忽略https证书提醒

    var httpclientHandler = new HttpClientHandler();
    httpclientHandler.ServerCertificateCustomValidationCallback = (message, cert, chain, error) => true;
    var httpClient = new HttpClient(httpclientHandler);

猜你喜欢

转载自www.cnblogs.com/xtjatswc/p/11997389.html