Skip to content

Instantly share code, notes, and snippets.

@chadmayfield
Created November 30, 2016 17:40
Show Gist options
  • Save chadmayfield/87a6d7b38dacc36f0f68740307a203ba to your computer and use it in GitHub Desktop.
Save chadmayfield/87a6d7b38dacc36f0f68740307a203ba to your computer and use it in GitHub Desktop.
Dump headers
curl -I https://google.com
Dump headers with content
curl -i https://google.com
Dump headers to a file
curl -sD headers2.txt -o /dev/null https://kyln.io
Be verbose in query
curl -v https://google.com
Trace output (more verbose than -v)
curl -s --trace trace.txt -o /dev/null https://google.com
Proxy to download file
curl -x proxysever.com:3128 https://google.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment