curlコマンド備忘録
Postman便利すぎてcurlの使いかた忘れてしまうので備忘録。
# application/jsonでのPOSTリクエスト curl -X POST -H ''Content-Type: applicaion/json" http://localhost:8081/register -d '{"email": "mori@hoge.com"}' # application/x-www-form-urlencodedでのPOSTリクエスト curl -X POST http://localhost:8081/register -d email=mori@hoge.com