ios Upload Image and Text using HTTP POST
问题 Thanks for reading. I am new to iOS and I am trying to upload an Image and a text using multi-part form encoding in iOS. The curl equivalent is something like this: curl -F \"param1=value1\" -F \"param2=@testimage.jpg\" \" http://some.ip.address:5000/upload \" The curl command above returns the expected correct response in JSON. Problem: I keep getting a HTTP 400 request which means I am doing something wrong while composing the HTTP POST Body. What I Did: For some reference, I tried Flickr