原文:关于AF请求报错Request failed: unacceptable content-type: text/plain 解决方案

NSString path resource getNotice NSString UrlStr NSString stringWithFormat: ,TCTHttpUrl,path NSDictionary parameters pageNo : , pageSize : AFHTTPSessionManager manager AFHTTPSessionManager manager man ...

2016-09-01 09:52 0 2749 推荐指数:

查看详情

request中获取post的json对象数据content-type=“text/plain

其实采用http://www.cnblogs.com/SimonHu1993/p/7295750.html中的方法一都能获取到,就是通过获取request中的流数据,拿到json数据,理论上应该适用各种content-type请求数据。 /** *获取 request 中用POST ...

Mon Aug 07 04:33:00 CST 2017 0 1416
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM