我正在从服务器请求数据,但我有一个问题,它首先调用 cookie 而不是数据,不像它应该是数据而不是 cookie。那么请问我该如何解决这个问题?
我已经通过 Charles 应用程序看到了这个问题。
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
[manager POST:string
parameters:@{@"data": @"<p_LM act=\"info\"/>", @"cookie": [temp objectForKey:@"cookie"]}
success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSDictionary *dic = (NSDictionary *)responseObject;
NSString *parity = [dic objectForKey:@"Response"];
}