Very, very quick command line script for Jon Matthews
Takes a url as an argument, runs curl command and extracts http response codes and locations. Outputs list of redirects.
Written by: Kieran Masterton
Date: 18.12.13
- Download
- cd into traceit directory
- chmod +x traceit
- Add traceit to your $PATH if you wish
- Done!
./traceit <url>
For example
./traceit http://google.com
Output should look like:
301 Moved Permanently: http://google.com
302 Found: http://www.google.com/
200 OK: http://www.google.co.uk/?gws_rd=cr&ei=m9yxUuDwA6WyywPbpoGoCg
Trace complete!