第一处就是要检查有没有加Content-Type或者Content-Type是不是与服务端接受的不对应
request.AddHeader(“Content-Type”, “application/json”);
第二处可能引起错误的地方就是放参数时有多种方法,最通用的有request.AddParameter(),但是在有些情况下要用request.AddJsonBody(new { input = postDataStr });来设置参数
06-06
1376
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-22
386
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交