HttpClientHandler handler = new HttpClientHandler(); handler.ClientCertificateOptions = ClientCertificateOption.Manual; handler.ClientCertificates.Add(certificate); HttpClient client = new HttpClient(handler);
HttpClientHandler handler = new HttpClientHandler(); handler.Proxy = new WebProxy("http://proxyserver:8080"); HttpClient client = new HttpClient(handler);The System.Net.Http HttpClientHandler is part of the System.Net.Http library.