2018年4月20日

HttpWebRequest Post请求webapi

摘要: 1、WebApi设置成Post请求在方法名加特性[HttpPost]或者方法名以Post开头如下截图: 2、使用(服务端要与客户端对应起来)【单一字符串方式】:注意:ContentType = "application/x-www-form-urlencoded";格式一: 客户端参数格式:如 "= 阅读全文

posted @ 2018-04-20 16:34 春风吹杨柳 阅读(2482) 评论(0) 推荐(0) 编辑

导航