fiddler使用
一、Content-type爲application/x-www-form-urlencoded
#請求頭
User-Agent: Fiddler
Host: localhost:8080
Content-Length: 153
Content-type: application/x-www-form-urlencoded
#post請求傳參方式
title=測試
&detail=加油
二、Content-type爲application/json
#請求頭
User-Agent: Fiddler
Host: localhost:8080
Content-Length: 153
Content-type: application/json
#傳參爲json格式的
{
"title":"測試",
"detail":"加油"
}
#注意要用英文的雙引號和冒號,value的值爲非字符串的,不需要加雙引號
三、查看請求結果