How can i use CURL to send binary data through a specific post parameter?
E.g in:
curl 'http://www.example.com' -H 'hi:hi' --data 'utf8=%E2%9C%93&_method=put&file=binarydatahere&submit=confirm'
I want to send the binary data through the file parameter, I've heard of the --data-binary @myfile.bin
method, but i fail to see how i can specify to which parameter the binary data goes through.
Best Answer
Put the name of the parameter in front of the
@
, like this:From the
curl
manpage: