Fiddler进行模拟Post提交json数据,总为null解决方式

Request Headers:

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

要加上Content-Type: application/json; charset=utf-8,要不是JSON没效

Request Body

{"UserID":4,"UserName":"Parry","UserEmail":"Parry@cnblogs.com"}

紧记,不要写成这样:[{"UserID":4,"UserName":"Parry","UserEmail":"Parry@cnblogs.com"}]

posted @ 2016-06-15 12:27  shiningrise  阅读(267)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css