Skip to content

Very quick and nasty command line script to trace HTTP redirects

Notifications You must be signed in to change notification settings

kieranmasterton/traceit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

traceit v0.1

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

Installation

  1. Download
  2. cd into traceit directory
  3. chmod +x traceit
  4. Add traceit to your $PATH if you wish
  5. Done!

Running a trace

./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!

About

Very quick and nasty command line script to trace HTTP redirects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages