curl post with json
Jul
25
1
3
curl -X POST -H "Content-Type: application/json" -d '{"username":"xyz","password":"xyz"}' http://localhost:8000/api/login
curl -X POST -H "Content-Type: application/json" -d '{"username":"xyz","password":"xyz"}' http://localhost:8000/api/login
Use `-f` flag on `tail` to continuously output lines of a file as they are added in the terminal:
tail -f <file>
CTRL-C to stop the process.