Created
October 24, 2023 04:30
-
-
Save FranklyFuzzy/8ca4850fc47a65b186624dbede3733bc to your computer and use it in GitHub Desktop.
follow redirects and show response code
This file contains 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
curl -s -L -D - website.com -o /dev/null | grep -e 'HTTP' -e 'location:' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for verbose output use curl -s -L -D - website.com -o /dev/null -w '%{url_effective}'