Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Finding a redirect's URL

by wog (Curate)
on Nov 23, 2001 at 22:25 UTC ( #127156=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $request = HTTP::Request->new("GET", "http://cnn.com/europe");
    my $response = $ua->simple_request($request);
    print $response->header("Location"), "\n";
    # http://europe.cnn.com
    
  2. or download this
    my $request = HTTP::Request->new("GET", "http://cnn.com/europe");
    my $response = $ua->request($request);
    print $response->previous->header("Location"), "\n";
    # http://europe.cnn.com
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-01-27 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?