Rokit (Redirection Optimization Kit) is a CLI tool to help wed admin/developer to test or optimize URL redirection. It's easy to integrate into your CI as smoke test and regression test for redirection testing.
Install via pip:
pip install rokit
Get a redirection chain:
$ rokit http://www.github.com
Redirect 2 time(s): http://www.github.com -> https://www.github.com/ -> https://github.com/
Verify if a url is in redirection chain:
$ rokit http://www.github.com https://www.github.com
Redirect 2 time(s): http://www.github.com -> https://www.github.com/ -> [https://github.com/]
[PASS] Request to http://www.github.com will redirect to https://github.com/