摘要: 今天在web api中遇到了这样一个问题,虽然api的参数类型是string,但只能接收post body中json格式的string,不能接收原始string。研究后发现,这是由于对于content-type为text/plain的post请求,asp.net web api没有提供对应的MediaTypeFormatter。 阅读全文
posted @ 2016-02-11 15:13 dudu 阅读(5904) 评论(1) 推荐(1) 编辑