How to use CURL command in linux for http get/post methods?

POST (with json payload)
curl -H "X-Auth-Token:bc72267ab53d4a439f33555ca01e204c" -d '{"auth":{"passwordCredentials":{"username": "admin", "password": "adminuser"}}}' -H "Content-type: application/json" http://localhost:8080/tdd

Search