List redirect chain using curl

Geschreven op 23 september 2019 door Philip Vergunst

Using the following command you can see the whole redirect chain of a URL using curl.

 curl  -H 'Cache-Control: no-cache' -s -L -k -D - 'http://example.com/' -o /dev/null -w '%{url_effective}'