AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManagermanager]; 

mgr.responseSerializer.acceptableContentTypes = [mgr.responseSerializer.acceptableContentTypessetByAddingObject:@"text/html"];//Very Important 

NSDictionary *param = @{@"name:@"jack",@"age":@"33"}; 

[mgr POST:@"test.php"parameters:param success:^(AFHTTPRequestOperation *operation,id responseObject) { 

 NSDictionary *d = responseObject; 

 NSString *str = [NSStringstringWithFormat:@"age:%@;\ngender:%@;\nname:%@\n\nresult:%@",d[@"content"][@"age"],d[@"content"][@"gender"],d[@"content"][@"name"],d[@"result"]]; 

 } failure:^(AFHTTPRequestOperation *operation,NSError *error) 

 { 

 operation.response.statusCode;//404 401之类 

 }];