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?
E.g.
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
Thanks
E.g.
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
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Is it possible to get the redirected URL?
by Tanktalus (Canon) on Dec 15, 2005 at 05:06 UTC | |
by weilies (Initiate) on Dec 15, 2005 at 08:43 UTC | |
Re: Is it possible to get the redirected URL?
by Kanji (Parson) on Dec 15, 2005 at 05:21 UTC | |
Re:Is it possible to get the redirected URL?
by kulls (Hermit) on Dec 15, 2005 at 04:27 UTC |
Back to
Seekers of Perl Wisdom