Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: LWP Question

by Khen1950fx (Canon)
on Dec 11, 2012 at 07:46 UTC ( #1008228=note: print w/ replies, xml ) Need Help??


in reply to LWP Question

You might find this useful:

#!/usr/bin/perl -l use strict; use warnings; use IO::Handle; use LWP::UserAgent; my $url = 'http://bit.ly/gf4hl'; my $ua = LWP::UserAgent->new( requests_redirectable => [], ); $ua->show_progress(1); my $res = $ua->get($url); print $res->request->uri->as_string; print $res->header('location');


Comment on Re: LWP Question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (19)
As of 2015-07-28 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls