Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 musing on the Monastery: (9)
As of 2024-03-28 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found