Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to get real address with LWP and redirects?

by ikegami (Pope)
on Sep 11, 2007 at 13:35 UTC ( #638297=note: print w/ replies, xml ) Need Help??


in reply to How to get real address with LWP and redirects?

To see the final uri:

my $response = $ua->...; print($response->request()->uri(), "\n");

Or to see all the redirections:

my $response = $ua->...; while ($response) { print($response->request()->uri(), "\n"); $response = $response->previous(); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://638297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (16)
As of 2016-07-27 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (245 votes). Check out past polls.