用AFNetwork框架的时候请求返回404错误

Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)" UserInfo=0x7f9950faba90 {com.alamofire.serialization.response.error.response= { URL: http://64.62.189.217:93/rest.php/feedback } { status code: 404, headers {
Connection = "keep-alive";
"Content-Encoding" = gzip;
"Content-Type" = "application/json; charset=utf-8";
Date = "Tue, 01 Sep 2015 08:28:34 GMT";
Server = nginx;
"Transfer-Encoding" = Identity;
Vary = "Accept-Encoding";
"X-Powered-By" = "PHP/5.6.12";
} }, NSErrorFailingURLKey=http://64.62.189.217:93/rest.php/feedback, com.alamofire.serialization.response.error.data=, NSLocalizedDescription=Request failed: not found (404)}

text/html 这个加了。

查看全部
u012911714
熊猫飘飘
2015/09/01 08:50
  • 404错误
  • net
  • 点赞
  • 收藏
  • 回答
    私信

1个回复