原文:關於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