Getting all redirect URLs
Posted: Fri Jan 30, 2009 5:59 pm
Does anyone know how you would capture all the URL's that a url redirects to?
For example, let's say the url http://www.example.com/test
Redirects to:
http://www.example.com/test/1
http://www.example.com/test/1/?something=1
http://www.example.com/test/1/?another=1
I would want to print out all of the URL's above that were redirected to. I know in Curl you can follow redirects, but not sure you capture each one.
I
For example, let's say the url http://www.example.com/test
Redirects to:
http://www.example.com/test/1
http://www.example.com/test/1/?something=1
http://www.example.com/test/1/?another=1
I would want to print out all of the URL's above that were redirected to. I know in Curl you can follow redirects, but not sure you capture each one.
I