I have a scenario where i want to find all the urls involved in a redirection. for example i have a url let says track.domain.com/123
Now if you click this urls it will redirect to domain1.com/123
then domain2.com/345
and so on. This direction can be either 301 or 302.
So i want to find how each url involved in the redirection. The output should be like.
track.domain/123
domain1.com/123
domain2.com/345
I tried with the Curl but it only gives me the first url itself.