Thomas, Mark - BLS CTR <[EMAIL PROTECTED]> wrote: > > Thomas, Mark - BLS CTR wrote: > > > How do I get the base URL of a page I request that has been > > > redirected (multiple times) to another page? > > > > Dump the request or response object with Data::Dumper and that > > should give you the URL you need. Then if there is no method > > to retrieve it, just figure out the correct hash reference > > into the object and retrieve it yourself. > > Good idea. By playing with various Dumper output, I found that > $response->request()->uri() was what I wanted. Thanks.
Since you mentioned "the base URL" it may be that what you really want is $response->base(), which will handle a BASE tag as well as the redirected request URL. -- Keith C. Ivey <[EMAIL PROTECTED]> Washington, DC _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs