HTTP::MobileAgent::AirHPhone - Air H" Phone implementation
use HTTP::MobileAgent; local $ENV{HTTP_USER_AGENT} = "Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J3002V/1.0/0100/c50)CNF/2.0"; my $agent = HTTP::MobileAgent->new; printf "Name: %s\n", $agent->name; # DDIPOCKET printf "Vendor: %s\n", $agent->vendor; # JRC printf "Model: %s\n", $agent->model; # AH-J3001V,AH-J3002V printf "Model Version: %s\n", $agent->model_version; # 1.0 printf "Browser Version: %s\n", $agent->browser_version; # 0100 printf "Cache Size: %s\n", $agent->cache_size; # 50
HTTP::MobileAgent::AirHPhone is a subclass of HTTP::MobileAgent, which implements DDIPocket's Air H" Phone user agents.
See "METHODS" in HTTP::MobileAgent for common methods. Here are HTTP::MobileAgent::AirHPhone specific methods.
$vendor = $agent->vendor;
returns vendor name.
$model = $agent->model;
returns model name. Note that model names are separated with ','.
$model_ver = $agent->model_version;
returns version number of the model.
$browser_ver = $agent->browser_version;
returns versino number of the browser.
$cache_size = $agent->cache_size;
returns cache size with kilobyte unit.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
HTTP::MobileAgent
http://www.ddipocket.co.jp/airh_phone/i_hp.html
To install HTTP::MobileAgent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::MobileAgent
CPAN shell
perl -MCPAN -e shell install HTTP::MobileAgent
For more information on module installation, please visit the detailed CPAN module installation guide.