I'm trying to pass the cat
output to curl:
$ cat file | curl --data '{"title":"mytitle","input":"-"}' http://api
But input
is literally a -
.
I spent a while trying to figure this out and got it working with the following:
cat data.json | curl -H "Content-Type: application/json" -X POST --data-binary @- http://api