AFNetworkingErrorDomain
全部标签 我向这样的url发送一个GET请求:https://test.com/app/login?json={"user":"test@gmail.com","password":"test"但是返回这个错误:ErrorDomain=AFNetworkingErrorDomainCode=-1016"Requestfailed:unacceptablecontent-type:text/plain"UserInfo=0x9ad3520{NSErrorFailingURLKey=https://test.com/app/login?json=%7B%22user%22:%22test@gmail
我正在尝试使用子类AFHTTPRequestOperationManager将我的代码转换为AFNetworking2.0。这是我的代码+(NSAFNetwokingRequestManager*)sharedClient{staticNSAFNetwokingRequestManager*_sharedClient=nil;staticdispatch_once_tonceToken;dispatch_once(&onceToken,^{_sharedClient=[[selfalloc]initWithBaseURL:[NSURLURLWithString:GET_CAR_BRAN