RESTful在asp.net webAPI下的PUT、POST实现,json传输实体

1.put方式实现

使用的是firefox的插件:httpRequester

image

image

 

2.Post实现

同上,

image

image

 

传入json,后台得到实体;

3.post传入string字符串,注意,string传入的时候,前面要加一个=号,传参格式,不要纠结。

image

image

posted on 2016-03-15 10:05  Anthony.Zhao  阅读(711)  评论(0编辑  收藏  举报