Can anyone tell me if I can (in the command line) issue a POST command that contains a file and other parameters?
I am trying to do something like:
curl -X POST -F "key=myKey&file=@myfile.txt" http://localhost:8080/myRestService/
I am really new in this domain, so excuse me for my basic question.
But it does not seems to work well. Any suggestion?
Tank you very much
You should use -d param
check a man page http://curl.haxx.se/docs/manpage.html
Try to specify a full path to your file.