Q:

cURL Binary Data and Form Data

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?

A:

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.

