Skip to content

Instantly share code, notes, and snippets.

@zbicin
Created November 22, 2019 18:04
Show Gist options
  • Select an option

  • Save zbicin/5b16915e2bafefbd8677a77afcf306d9 to your computer and use it in GitHub Desktop.

Select an option

Save zbicin/5b16915e2bafefbd8677a77afcf306d9 to your computer and use it in GitHub Desktop.
cURL cheatsheet

GET

curl http://localhost:3000/messages

POST (JSON)

curl -d '{"login": "zbicin", "message": "test message"}' -H "Content-Type: application/json" -X POST http://localhost:3000/sendMessage

HEAD

curl -I http://localhost:3000/messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment