I am using curl and I would like to execute a HTTP PUT request by sending a --data-urlencode
string and a --data-binary
JSON file content. Is it possible to make that in the same curl
command?
I tried the following
curl www.website.org --request PUT -H Content-Type: application/json --data-urlencode "key=sample_string" --data-binary @sample_file.json
but it seems do not work as expected: key=sample_string
and sample_file.json
content are not send at all.