Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2016-12-03 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.