Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: How to get back the url of a page

by Anonymous Monk
on May 19, 2007 at 12:42 UTC ( [id://616319]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to get back the url of a page
in thread How to get back the url of a page

uri is always the location
use strict; use warnings; use WWW::Mechanize; my $url = 'http://google.com'; my $mech = WWW::Mechanize->new(); warn $url; warn $mech->get($url); warn $mech->uri(); __END__ http://google.com at - line 9. HTTP::Response=HASH(0x1d7f160) at - line 10. http://www.google.com/ at - line 11.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found