afhttprequestoperation

AFHTTPRequestOperationManager post multi-part request not working

亡梦爱人 提交于 2019-11-29 17:09:22
Here is the template that I am using from the Git Doc AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; NSDictionary *parameters = @{@"foo": @"bar"}; [manager POST:@"http://example.com/resources.json" parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@"JSON: %@", responseObject); } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"Error: %@", error); }]; Here is how I am using it -(void)postMultipartToServer { if (!self.destinationUrl) { return; } AFHTTPRequestOperationManager *manager =

AFHTTPRequestOperationManager post multi-part request not working

被刻印的时光 ゝ 提交于 2019-11-28 10:32:44
问题 Here is the template that I am using from the Git Doc AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; NSDictionary *parameters = @{@"foo": @"bar"}; [manager POST:@"http://example.com/resources.json" parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@"JSON: %@", responseObject); } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"Error: %@", error); }]; Here is how I am using it -(void