Dcycle Blog

Getting the final URL after redirects

December 05, 2016

When you need to get the final URL after all redirects, you can type:

curl -Ls -o /dev/null -w %{url_effective} http://google.com