1.初看以为是后台没写好,原来是没联网,(我开的WiFi,联通未登录,请求数据直接跳到了URL: http://27.39.80.80/ ,联通的登录页。表现就是Code=-1016 )
Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo=0x170271680 {AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x170231da0> { URL: http://27.39.80.80/ } { status code: 200, headers {
"Content-Length" = 1019;
"Content-Type" = "text/html;charset=UTF-8";
Date = "Mon, 18 Aug 2014 13:01:18 GMT";
Server = "Apache-Coyote/1.1";
} }, NSLocalizedDescription=Request failed: unacceptable content-type: text/html, NSErrorFailingURLKey=http://27.39.80.80/}