Skip to content

Instantly share code, notes, and snippets.

@FranklyFuzzy
Created October 24, 2023 04:30
Show Gist options
  • Save FranklyFuzzy/8ca4850fc47a65b186624dbede3733bc to your computer and use it in GitHub Desktop.
Save FranklyFuzzy/8ca4850fc47a65b186624dbede3733bc to your computer and use it in GitHub Desktop.
follow redirects and show response code
curl -s -L -D - website.com -o /dev/null | grep -e 'HTTP' -e 'location:'
@FranklyFuzzy
Copy link
Author

for verbose output use curl -s -L -D - website.com -o /dev/null -w '%{url_effective}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment