Tracing Redirects with curl

Posted on Thu 31 May 2012 in misc

I quite often need to debug rewrites and redirects and with curl this is quite easy.

curl -I -L "http://somewhere.com"

also you can add the -k option to ignore invalid certificate errors