码迷,mamicode.com
首页 > 其他好文 > 详细

restClient访问SSL

时间:2016-09-26 16:30:03      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:

            IRestClient client = new RestClient("https://xxx.com/aa/bb");
            var prjIds = "12067";
            var request15 = new RestRequest().AddParameter("prjIds", prjIds).AddParameter("pageLocation", 5);
            ServicePointManager.ServerCertificateValidationCallback = ((a1, b1, c1, d1) => { return true; });
            var response15 = client.Execute(request15);
            if (response15.StatusCode == HttpStatusCode.OK)
            {
                var content = response15.Content;
            }

 

restClient访问SSL

标签:

原文地址:http://www.cnblogs.com/zhshlimi/p/5909329.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!