Wednesday, July 25, 2012

curl send file with filename

Put filename in the header
curl -H "Content-type: application/octet-stream"  -H "Filename: install.log"  -X POST http://127.0.0.1:5000/messages --data-binary @install.log