I need to send json to a web service that only accepts it through a POST variable.
ASIFormDataRequest insists on exiting my quotes.
any help would be appreciated
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
NSString *body = [NSString stringWithFormat:@"{\"user\":\"username\",\"pass\":\"password\"}"];
[request setPostValue:body forKey:@"body"];
[request startSynchronous];
output: "{\"user\":\"username\",\"pass\":\"password\"}"
source
share