Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Finding a redirect's URL

by wog (Curate)
on Nov 23, 2001 at 22:25 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (None)
    As of 2024-04-25 00:35 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found