Skip to content

Instantly share code, notes, and snippets.

@matthiasguentert
Last active January 5, 2022 19:54
Show Gist options
  • Save matthiasguentert/7a11646cf24ee81df17f5bcd82ff19b8 to your computer and use it in GitHub Desktop.
Save matthiasguentert/7a11646cf24ee81df17f5bcd82ff19b8 to your computer and use it in GitHub Desktop.
Curl Cheat Sheet

Show response headers & body

curl --include https://somehost

Show only response header

curl --head https://somehost
curl -I https://somehost

Add request headers

curl --header "X-MyHeader: 123" --header "X-AnotherHeader: foo" https://somehost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment