i have to create a POST request using CURL with this parameters:
- The header must be:
Content-Type:multipart/form-data
- 2 Boundary
- first:
Content-Disposition: form-data; name="fileName" Content-Type: application/json {"fileName":[filename],"codFornitore":205900}
- Second:
Content-Disposition: form-data; name="file"; filename="[filename]" Content-Type: [based on type of file] [byte array of file content]
How can i create a string that define this type of post body and its curl call?