For a project I am currently working on I am looking for a solution that
gives me an ordened list of all the URLs that are in a redirect chain.
Lets say I have an URL x, clicking this in a normal browser would
redirect to y, which would redirect me to z; my final destination.
Having just URL x, how can I get URL y and z? Do I need to use cURL to
extract the heads recursively from all urls until there are no more
redirects? How would I go about doing this?
do u require to perform any operation btw each redirect??
Reply....
Not really. I would just like a list of (chain) redirects to write in a
database. I just want to extra all redirect information from an URL at
any given time. Nothing has to be computed real time or during the
redirects for my application.