I am trying to make an HTTP PUT request using AFNetworking
to create an attachment in a CouchDB server. The server expects a base64 encoded string in the HTTP b
You can use multipartFormRequestWithMethod
method as following:
NSURLRequest *request = [self multipartFormRequestWithMethod:@"PUT" path:path parameters:parameters constructingBodyWithBlock:^(id formData) {
[formData appendString:]
}];
AFHTTPRequestOperation *operation = [client HTTPRequestOperationWithRequest:request success:success failure:failure];
[client enqueueHTTPRequestOperation:operation];