LWP::UserAgent::ProgressBar - An LWP user agent that can display a progress bar
my $url = 'http://...'; my $response = LWP::UserAgent::ProgressBar->new->get_with_progress($url); $response->is_success or die "couldn't get $url\n"; my $content = $response->content;
This class is a subclass of LWP::UserAgent that provides one additional method, described below.
get_with_progress
Takes the same arguments as LWP::UserAgent's get(), but overrides the :content_cb and :read_size_hint arguments. During download, a progress bar is displayed.
get()
:content_cb
:read_size_hint
post_with_progress
Takes the same arguments as LWP::UserAgent's post(), but overrides the :content_cb and :read_size_hint arguments. During download, a progress bar is displayed.
post()
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org.
See perlmodinstall for information and options on installing Perl modules.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see http://search.cpan.org/dist/LWP-UserAgent-ProgressBar/.
Marcel Grünauer, <marcel@cpan.org> Ktat ktat at cpan.org
<marcel@cpan.org>
ktat at cpan.org
Copyright 2007-2009 by the authors.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install LWP::UserAgent::ProgressBar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LWP::UserAgent::ProgressBar
CPAN shell
perl -MCPAN -e shell install LWP::UserAgent::ProgressBar
For more information on module installation, please visit the detailed CPAN module installation guide.