cURL equivalent in Swift - iOS cURL equivalent in Swift - iOS curl curl

cURL equivalent in Swift - iOS


In the curl command, you are defining the form fields file, mode and apikey, and you need to encode them in the form multipart/form-data and put this in the HTTPBody. Some quick googling reveals the library SRWebClient (among many others) that will help you make this sort of request.