[BASH] Curl - fourslickz/notes GitHub Wiki
using json data
curl -X POST http://192.168.10.1/api/laporan.php -H 'Content-Type: application/json' -d '{"type":"view_data", "gate":"gate-8", "username":"1806015"}'
using json file
curl -X POST http://localhost:8080/prints -H 'Content-Type: application/json' -d @print.json