Skip to content

Instantly share code, notes, and snippets.

@kitzberger
Last active May 14, 2025 11:26
Show Gist options
  • Save kitzberger/21fb021a7b3a7f0c9dd26cf0909e286f to your computer and use it in GitHub Desktop.
Save kitzberger/21fb021a7b3a7f0c9dd26cf0909e286f to your computer and use it in GitHub Desktop.
Cheatsheet for curl
# Print only response header
curl -sS -D - -o /dev/null 'https://www.google.de'
# Post JSON
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer {token}"
--request POST \
--data '{"username":"xyz","password":"xyz"}' \
'https://www.example.org'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment