Is there a way to use curl to do a multipart/form-data
post and specify that the data is application/json
? It doesn't have to be curl.
This is what I use, and it works fine
curl -v -H "Content-Type:multipart/form-data"
-F "someName={\"your\":\"json\"};type=application/json"
Note: I'm on Windows, hence the requirement for double quotes
Or
-F "[email protected];type=application/json"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With