How to list all URL's in Redirect chain

This simple utility is extremely useful in detecting bad redirects and loops, specially in big websites. You can also include it in scripts.

wget 2>&1 | grep Location:

The response, in this case, is:

Location: [following]
Location: [following]
Location: [following]

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.