接触WebApi读的第一篇文章: ASP.NET Web API(一):使用初探,GET和POST数据html
实践过程当中,用的Fiddler模拟Post请求时收到的对象老是为空nulljson
解决:将文章中的内容改成了以下:app
User-Agent: Fiddler
Host: localhost:52404
Content-Type: application/json; charset=utf-8
Content-Length: 45post
Request Body:url
{"UserName":"u4","Password":"p4","Mail":"m4"} 不能有[]htm