传json格式:

Parsed写:

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

request body写:

{"参数名":"参数值","参数名":"参数值",...}

 

传的不是JSON格式的话

Parsed写:

User-Agent: Fiddler
Host: localhost:1455 
Content-Type: application/x-www-form-urlencoded;charset=utf-8  
Content-Length: 38

request body写:

name1=valule1&name2=value2...

 

Content-Type设置的很重要,设置滴和request body里面的数据类型不对。就不能传滴....

 

转自: http://blog.csdn.net/nongs/article/details/40150293

 posted on 2015-03-26 00:02  someblue  阅读(1366)  评论(0编辑  收藏  举报