Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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(); }


Comment on Re: How to get real address with LWP and redirects?
Select or Download Code

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 scrutinizing the Monastery: (5)
As of 2014-08-29 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls