retracer: URL Redirect Tracer
h12.io/retracer
is a Go package that can trace any HTTP(S) URL redirections regardless
they are 3xx redirections, http-eqiv refreshes, Javascript navigations and the non-standard
HTTP Refresh header.
Features
- Cookie, Referer and custom headers supported
- Avoid unnecessary resource loading, like: CSS, images and iframes
Install
sudo apt-get install surf xvfb
go get h12.io/retracer
Tips
It is recommended to use Xvfb to prevent Surf window appearing during Javascript tracing.
xvfb :99 &
DISPLAY=:99 ./your_program
To build Surf:
sudo apt-get install libwebkitgtk-dev
make