You can accomplish the same with curl -L
but I've had this as a little personal hack script in my ~/bin
folder on my computer. Thought I'd make it a public tool. Also, from here, a lot more can be done to this script if you wanna help out with ideas.
▶ redirect-chain http://developer.mozilla.org/en-US/docs/xpcshell 0 http://developer.mozilla.org/en-US/docs/xpcshell 301 1 > https://developer.mozilla.org/en-US/docs/xpcshell 301 2 >> https://developer.mozilla.org/docs/en/XPConnect/xpcshell 302 3 >>> https://developer.mozilla.org/en-US/docs/en/XPConnect/xpcshell 301 4 >>>> https://developer.mozilla.org/en-US/docs/XPConnect/xpcshell 301 5 >>>>> https://developer.mozilla.org/en-US/docs/Mozilla/XPConnect/xpcshell 301 6 >>>>>> https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_bindings/XPConnect/xpcshell 200
It basically gives you a pretty summary of redirects from a starting URL.
To install it on your system run:
pipx install redirect-chain
Happy Friday!
Comments