赞
踩
- var handler = new HttpClientHandler();
- handler.ClientCertificateOptions = ClientCertificateOption.Manual;
- handler.ServerCertificateCustomValidationCallback =
- (httpRequestMessage, cert, cetChain, policyErrors) =>
- {
- return true;
- };
-
- var client = new HttpClient(handler);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。