首页 > 代码库 > restClient访问SSL

restClient访问SSL

            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