Is there any way to POST both binary data and form data using cURL? For example:
"C:\Program Files\Curl\curl" -k --data-binary @"C:\datafile.xml" -d "key=somethinghere" -H "Content-Type:application/html" -X POST http://localhost:57870/PostTheData -v
The binary data works just fine but I need to POST a parameter as well as the binary data.
Any ideas?
Always speaking too soon. I've fixed this now:
"C:\Program Files\Curl\curl" -k -d "param=something" --data-binary @"data.xml" http://localhost:57870/UploadData -v
Hey presto.
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