暂时测试以json方式提交
Content-Type设置
Content-Type: application/json; charset=utf-8
提交参数
{ "glsort": 6032, "page_index": 1, "page_size": 10 }
WebApi接收
[HttpPost] public string List(dynamic data) { int glsort = Common.ObjectToInt(data.glsort); int page_index = data.page_index != null ? Common.ObjectToInt(data.page_index) : 1; int page_size = data.page_size != null ? Common.ObjectToInt(data.page_size) : 10; return "ok"; }