I\'ve been posting a file with this curl command:
curl -i -F file=@./File.xlsm -F name=file -X POST http://example.com/new_file/
Now I want to
From @nbrooks comment, adding an additional header HTTP header works fine as shown below by using several -H or --header
flags to your curl command:
curl -H "comment: Submitting a new data set." -H "current: false" -H "sheet: 1" -H "row: 7" -F file=@./File.xlsm -F name=file http://example.com/new_file/
comment
andcurrent
can be combined into "metadata" in therequest.headers
processing part on the flask web server.