证书信任和用户认证

.net 访问证书认证信任

ServicePointManager.ServerCertificateValidationCallback = (a, b, c, d) => true;

 

 

 

Windows authentication validation

using (var client = new HttpClient(url))
{

client.TransportSettings.Credentials = new NetworkCredential("username", "password", "domain");

...

}

posted @ 2012-02-28 16:59  雅~  阅读(280)  评论(0编辑  收藏  举报