da-sztorc
8/17/2017 - 2:09 PM

How to POST a JSON Body with Curl

How to POST a JSON body with curl.

curl -H "Content-Type: application/json" -X POST -d '{"username":"xyz","password":"xyz"}' http://localhost:3000/api/login