2015年3月9日

C#通过WebClient/HttpWebRequest实现http的post/get方法

摘要: //body是要传递的参数,格式"roleId=1&uid=2"//post的cotentType填写://"application/x-www-form-urlencoded"//soap填写:"text/xml; charset=utf-8" public static string Po... 阅读全文

posted @ 2015-03-09 17:35 走过路过ボ不要错过 阅读(267) 评论(0) 推荐(0) 编辑

WCF Rest:不使用UriTemplate使用post方式传参解决HTTP400问题以及参数映射问题

摘要: 在使用POST方式向服务提交数据时,出现HTTP400异常,以下代码描述: 服务接口定义: [OperationContract] [WebInvoke(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessa... 阅读全文

posted @ 2015-03-09 17:07 走过路过ボ不要错过 阅读(446) 评论(0) 推荐(0) 编辑

导航