Fiddler進行模擬Post提交json數據,總爲null解決方式

Request Headers:json

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

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

Request Bodyutf-8

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

緊記,不要寫成這樣:[{"UserID":4,"UserName":"Parry","UserEmail":"Parry@cnblogs.com"}]mail

相關文章
相關標籤/搜索