CURL Binary Data and Form Data

Is there a way to POST both binary data and form data using cURL? For instance:

"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

Binary data works just fine, but I need a POST parameter as well as binary data.

Any ideas?

+5
source share
1 answer

Too early to speak. I fixed it now:

"C:\Program Files\Curl\curl" -k -d "param=something" --data-binary @"data.xml" http://localhost:57870/UploadData -v

Hi presto.

+2
source

All Articles