Ios AFGET方法错误未经授权(401)

Ios AFGET方法错误未经授权(401),ios,iphone,afnetworking-2,Ios,Iphone,Afnetworking 2,我在从AFNetworking发出Get请求时收到error.userInfo中的此响应 "Request failed: unauthorized (401)" UserInfo=0x17d296c0 {NSErrorFailingURLKey=http://futstepz.node.com/emap/api/v1/users/friend_list_page?auth_token=xyz, com.alamofire.serialization.response.error.respo

我在从AFNetworking发出Get请求时收到error.userInfo中的此响应

  "Request failed: unauthorized (401)" UserInfo=0x17d296c0 {NSErrorFailingURLKey=http://futstepz.node.com/emap/api/v1/users/friend_list_page?auth_token=xyz, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x17d9f5e0> { URL:http://futstepz.node.com/emap/api/v1/users/friend_list_page?auth_token=xyz } { status code: 401, headers {
    "Cache-Control" = "no-cache";
    Connection = "Keep-Alive";
    "Content-Length" = 74;
    "Content-Type" = "application/json; charset=utf-8";
    Date = "Wed, 10 Sep 2014 06:42:27 GMT";
    Server = "WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)";
    "X-Content-Type-Options" = nosniff;
    "X-Frame-Options" = SAMEORIGIN;
    "X-Request-Id" = "51544d50-3d1b-4b54-b8c9-34540b73e695";
    "X-Runtime" = "0.007077";
    "X-Ua-Compatible" = "chrome=1";
    "X-Xss-Protection" = "1; mode=block";
} }, NSLocalizedDescription=Request failed: unauthorized (401)}

我建议您使用cURl测试您的请求。服务器似乎被拒绝了请求,这可能是由于一些原因,如缺少http头、错误的身份验证代码等。这是什么?401错误是否因意外事故而发生?在浏览器中,当我粘贴链接时,它的工作方式请看,我已经用cURL测试过了,它的工作方式。你修复了这个问题吗?
 AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];

manager.requestSerializer = [AFJSONRequestSerializer serializer];


[manager GET:@"http://futstepz.node.com/emap/api/v1/users/friend_list_page?auth_token=xyz" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject)