Last active
May 14, 2025 11:26
-
-
Save kitzberger/21fb021a7b3a7f0c9dd26cf0909e286f to your computer and use it in GitHub Desktop.
Cheatsheet for curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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