|go ahead... be a heretic|
Is it possible to get the redirected URL?by weilies (Initiate)
|on Dec 15, 2005 at 03:43 UTC||Need Help??|
weilies has asked for the
wisdom of the Perl Monks concerning the following question:
hi, i had a situation here. Is it possible for me to get a return of url by a perl command?
Pg A(currently)->Pg B->Pg C->....->Pg D '->' means 'redirect' Is there a perl function can retrieve the URL of Pg D from Pg A?
Like i m currently in Pg A, then inside the a.pl, i write Code : print a_perl_func(Pg_B);
Browser Output : http://www.domain.com/d.pl
Meanwhile i m still standing in a.pl
Can perl do that? What i hope to get is the URL of the final landing pg, no matter how much pg redirected. But it sounds crazy for me. :~o