How to track url redirects in the browser?

When I type http://example.com/load/ in my browser and press ENTER, this website redirects me to http://example.com/load/1/, from there to http://example.com/load/2/ and then I finally landed on http://example.com/load/3/.

These redirection happens at the website end, I am not aware where I am going. But I finally landed on this URL: http://example.com/load/3/.

I want to track all the URLs my browser sees. I am not seeing it in my history as its redirect at website end. Is there any firefox addon or some tool which can track this for me?


Edited: It is now a decade later and there's a better way to do this

  1. goto https://deref.link/
  2. paste in the url in quetion.
  3. hit enter.
  4. read the results on the right hand side.

original 2011 answer

  1. Install FireBug 1

  2. open firebug

  3. goto the net tab

  4. click on the "persist" option

  5. enter your url

  6. watch the list of urls fetched change. you'll see something like this for your example:

    http://example.com/load/ 302 Moved temporarily
    http://example.com/load/1/ 302 Moved temporarily
    http://example.com/load/2/ 302 Moved temporarily
    http://example.com/load/3/ 200 OK

If you select one of those and open the twisty next to ti you can get the headers which will show you exactly what was requested and what the response was. IN particular you want to look at the Location header on the responses, as that tells your browser what to go load instead.


Footnotes

  1. Or use any other form of devtools for your favorite browser.

Now, when FireBug is integrated into developer tools you may enable persistent logs by next steps:

  1. Open DevTools (F12)
  2. Go into Toolbox options (forth icon from right top)
  3. Find Common preferences section
  4. Enable persistent logs
  5. Observe network requests and responses under the Network tab

Screenshot:

enter image description here

UPD
I update by FF to v61. In this version configuration slightly different:

  1. Open DevTools (F12)
  2. Enable Persists Logs

enter image description here

UPD
For newer version of FF, this options are at settings: enter image description here


If you don't want to install firebug, then you can use the Redirect Tracing Tool