|
NAMEHTTP::MobileAgent::DoCoMo - NTT DoCoMo implementationSYNOPSISuse HTTP::MobileAgent; local $ENV{HTTP_USER_AGENT} = "DoCoMo/1.0/P502i/c10"; my $agent = HTTP::MobileAgent->new; printf "Name: %s\n", $agent->name; # "DoCoMo" printf "Ver: %s\n", $agent->version; # 1.0 printf "HTML ver: %s\n", $agent->html_version; # 2.0 printf "Model: %s\n", $agent->model; # "P502i" printf "Cache: %dk\n", $agent->cache_size; # 10 print "FOMA\n" if $agent->is_foma; # false printf "Vendor: %s\n", $agent->vendor; # 'P' printf "Series: %s\n", $agent->series; # "502i" # only available with <form utn> # e.g.) "DoCoMo/1.0/P503i/c10/serNMABH200331"; printf "Serial: %s\n", $agent->serial_number; # "NMABH200331" # e.g.) "DoCoMo/2.0 N2001(c10;ser0123456789abcde;icc01234567890123456789)"; printf "Serial: %s\n", $agent->serial_number; # "0123456789abcde" printf "Card ID: %s\n", $agent->card_id; # "01234567890123456789" # e.g.) "DoCoMo/1.0/P502i (Google CHTML Proxy/1.0)" printf "Comment: %s\n", $agent->comment; # "Google CHTML Proxy/1.0 # e.g.) "DoCoMo/1.0/D505i/c20/TB/W20H10" printf "Status: %s\n", $agent->status; # "TB" # only available in eggy/M-stage # e.g.) "DoCoMo/1.0/eggy/c300/s32/kPHS-K" printf "Bandwidth: %dkbps\n", $agent->bandwidth; # 32 # e.g.) "DoCoMo/2.0 SO902i(c100;TB;W30H16)" print "XHTML compiant!\n" if $agent->xhtml_compliant; # true # e.g.) "DoCoMo/2.0 P07A(c500;TB;W24H15)" printf "Browser ver: %s\n", $agent->browser_version # 2.0 DESCRIPTIONHTTP::MobileAgent::DoCoMo is a subclass of HTTP::MobileAgent, which implements NTT docomo i-mode user agents.METHODSSee "METHODS" in HTTP::MobileAgent for common methods. Here are HTTP::MobileAgent::DoCoMo specific methods.
AUTHORTatsuhiko Miyagawa <miyagawa@bulknews.net>This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOHTTP::MobileAgenthttp://www.nttdocomo.co.jp/p_s/imode/spec/useragent.html http://www.nttdocomo.co.jp/p_s/imode/spec/ryouiki.html http://www.nttdocomo.co.jp/p_s/imode/tag/utn.html http://www.nttdocomo.co.jp/p_s/mstage/visual/contents/cnt_mpage.html
Visit the GSP FreeBSD Man Page Interface. |