手动设置--手动设置数据格式
AFHTTPRequestOperationManager * manger = [AFHTTPRequestOperationManager manager];
manger.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"text/html", nil];
[manger GET:[NSString stringWithFormat:ARTICALURL , _page] parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
}];
}
网友评论