I\'m trying to pass the cat output to curl:
cat
$ cat file | curl --data \'{\"title\":\"mytitle\",\"input\":\"-\"}\' http://api
Bu
This should also work
curl -H "Content-Type: application/json" -d @data.json http://api
Using -d forces curl to implicitly use POST for the request.