App::Chart::UserAgent -- LWP useragent subclass
use App::Chart::UserAgent; my $ua = App::Chart::UserAgent->instance;
LWP::UserAgent App::Chart::UserAgent
This is a small subclass of LWP::UserAgent which sets up, by default,
LWP::UserAgent
Connection caching, currently just 1 kept open at any time.
User-Agent identification header.
User-Agent
Accept-Encoding header with HTTP::Message::decodable() to let the server send gzip etc. This means all responses should be accessed with $resp->decoded_content(), not raw content().
Accept-Encoding
HTTP::Message::decodable()
$resp->decoded_content()
content()
Progress and redirection messages (back through App::Chart::Download).
App::Chart::Download
App::Chart::UserAgent->instance
Return a shared App::Chart::UserAgent object. This shared instance is meant for all normal use.
App::Chart::UserAgent
App::Chart::UserAgent->new (key => value, ...)
Create and return a new App::Chart::UserAgent object.
App::Chart::UserAgent->_agent
$ua->_agent
Return the default User-Agent header string. This is Chart plus the LWP default, eg.
Chart/100 libwww-perl/5.814
http://user42.tuxfamily.org/chart/index.html
Copyright 2008, 2009, 2010, 2011, 2016 Kevin Ryde
Chart is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Chart is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Chart; see the file @chartdatadir@/COPYING. Failing that, see http://www.gnu.org/licenses/.
To install App::Chart, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Chart
CPAN shell
perl -MCPAN -e shell install App::Chart
For more information on module installation, please visit the detailed CPAN module installation guide.