I'm not sure how to implement post request equivalent to this curl request:
curl -F=@file.json https://www.example.com/?id=some_idI tried creating an NSDictionary equivalent my json,
jsondata = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:&error];NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https:/ [request setHTTPMethod:@"POST"];[request setHTTPBody:jsondata];
But something is wrong as it doesn't work. Pls help if you know what's the problem. How can I post a nsdictionary? I'm getting a success response, but when I open the url its blank