Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: LWP::Simple - so they say!

by Anonymous Monk
on Apr 20, 2012 at 11:52 UTC ( #966183=note: print w/replies, xml ) Need Help??


in reply to Re: LWP::Simple - so they say!
in thread LWP::Simple - so they say!

No need to abort with max_size

#!/usr/bin/perl -- use strict; use warnings; use WWW::Mechanize; my $url = 'http://example.com'; my $ua = WWW::Mechanize->new( qw/ max_size 1 autocheck 1 show_progress 1 / ); eval { $ua->head($url); 1 } or $ua->get($url); print $ua->dump_headers; __END__

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966183]
help
Chatterbox?
[stevieb]: beech already found a thing I don't like... it'll take time to sort out some new methods to deal with little/big endian ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-07-22 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (336 votes). Check out past polls.