curl -X POST example.com
curl -X POST -H "Content-Type: application/json" -d "{\"msg\": \"hello world\"}" example.com
curl -X GET example.com
curl -X PUT example.com
curl -X PUT -H "Content-Type: application/json" -d "{\"msg\": \"ola mundo\"}" example.com
usando um arquivo como payload:
curl -X PUT -d @nomeDoArquivo example.com
curl -X DELETE example.com
Fontes: