How to POST JSON data with CURL from a Terminal/Command line
curl -d '{"job": "leader", "name": "Sam"}' -H "Content-Type: application/json" -X POST [ Ссылка ]
curl -d '{"job": "leader", "name": "Sam"}' -H "Content-Type: application/json" -X POST [ Ссылка ] | python -m json.tool
curl -d "@mydata.json" -H "Content-Type: application/json" -X POST [ Ссылка ]
![](https://s2.save4k.ru/pic/EdPQ7cHj1YM/mqdefault.jpg)