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

RestClient POST

时间:2015-10-15 09:56:19      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:

 

SSL:

ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;

 

var client = new RestClient(apihost);
var request = new RestRequest(Method.POST);
request.AddFile("Img", image1, "Img1");
request.AddParameter("UserName", "PCK");
IRestResponse response = client.Execute(request);

return response.Content;

RestClient POST

标签:

原文地址:http://www.cnblogs.com/ahuo/p/4881449.html

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