shimgo
4/13/2018 - 5:30 AM

curlリクエスト

curl -d 'first_name=test&last_name=foo' http://hoge:80.json

POST ステータスコード付き

curl -d '{"identifier":"ope@example.com","password":"hogehoge"}' -H 'Content-Type: application/json' -X POST http://localhost:3000/hoge.json -w '%{http_code}\n'