hrysd の旧ブログ
id:hrysd
curl で JSON等のファイルを POST
ファイル名の前に @ をつけてあげる。 curl -X POST -H "Content-Type: application/json" http://localhost:3000/comments -d @comment.json