如何在AFHTTPSessionManager请求中添加原始主体?

时间:2016-06-20 09:23:31

标签: ios objective-c afnetworking-2

Postman Screen 我想在AFHTTPSessionManager请求中添加Raw body

1 个答案:

答案 0 :(得分:-1)

AFHTTPRequestOperationManager *manager;

  manager = [AFHTTPRequestOperationManager manager];
 manager.requestSerializer = [AFJSONRequestSerializer serializer];
 [manager.requestSerializer setTimeoutInterval:10.0];
[manager POST:strRequestUrl parameters:dictParams success:^(AFHTTPRequestOperation *operation, id responseObject)
        {
 } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
 }];