Web Api学习一

时间:2014-08-01 15:56:11   收藏:0   阅读:308

接触WebApi读的第一篇文章: ASP.NET Web API(一):使用初探,GET和POST数据

实践过程中,用的Fiddler模拟Post请求时收到的对象总是为空null

解决:将文章中的内容改为了如下:

User-Agent: Fiddler
Host: localhost:52404
Content-Type: application/json; charset=utf-8
Content-Length: 45

Request Body:

{"UserName":"u4","Password":"p4","Mail":"m4"} 不能有[]

Web Api学习一,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!