Main > Programming > Libraries >

Mobile::UserAgent 1.05

Mobile::UserAgent 1.05

Sponsored Links

Mobile::UserAgent 1.05 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.037 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 979
Date added: 2007-03-22
Publisher: Craig Manley

Mobile::UserAgent 1.05 description

Mobile::UserAgent is a mobile user agent string parsing class.

SYNOPSIS

### Print the information parsed from a user-agent string:
use Mobile::UserAgent;
my $useragent = Nokia6600/1.0 (4.09.1) SymbianOS/7.0s Series60/2.0 Profile/MIDP-2.0 Configuration/CLDC-1.0;
my $uaobj = new Mobile::UserAgent($useragent);
if ($uaobj->success()) {
print Vendor: . $uaobj->vendor() . "n";
print Model: . $uaobj->model() . "n";
print Version: . $uaobj->version() . "n";
print Series60: . $uaobj->isSeries60() . "n";
print Imode?: . $uaobj->isImode() . "n";
print Mozilla?: . $uaobj->isMozilla() . "n";
print Standard?: . $uaobj->isStandard() . "n";
print Rubbish?: . $uaobj->isRubbish() . "n";
}
else {
print "Not a mobile user-agent: $useragentn";
}


### Determine if the client is a mobile device.
use Mobile::UserAgent ();
use CGI ();

# Check 1: (check if it sends a user-agent profile URL in its headers)
foreach my $name (X_WAP_PROFILE,PROFILE,13_PROFILE,56_PROFILE) {
if (exists($ENV{"HTTP_$name"})) {
print "Client has a user-agent profile header, so its probably a mobile device.n";
last;
}
}

# Check 2: (check if it supports WML):
my $q = new CGI();
if ($q->Accept(text/vnd.wap.wml) == 1) {
print "Client supports WML so its probably a mobile device.n";
}

# Check 3: (check if this class can parse it)
my $uaobj = new Mobile::UserAgent();
if ($uaobj->success()) {
print "Clients user-agent could be parsed, so its a mobile device.n";
}

Parses a mobile user agent string into its basic constituent parts, the most important being vendor and model.

One reason for doing this would be to use this information to lookup vendor-model specific device characteristics in a database. You can use also use user agent profiles to do this (for which Ive developed other classes), but not all mobile phones have these, especially the older types. Another reason would be to detect if the visiting client is a mobile handset.

Only real mobile user-agent strings can be parsed succesfully by this class. Most WAP emulators are not supported because they usually dont use the same user-agent strings as the devices they emulate.

Mobile::UserAgent 1.05 Screenshot

Advertisements

Mobile::UserAgent 1.05 Keywords

Bookmark Mobile::UserAgent 1.05

Hyperlink code:
Link for forum:

Mobile::UserAgent 1.05 Copyright

WareSeeker periodically updates pricing and software information of Mobile::UserAgent 1.05 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Mobile::UserAgent 1.05 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
mod_auth_useragent allows you to forbid clients based on their User-Agent by placing a single line in your Apache httpd.conf. Free Download
Mobile::Wurfl is a Perl module interface to WURFL (the Wireless Universal Resource File. Free Download
Cornfed SIP User Agent is a SIP Softphone. Free Download
App::UserAgent - the browser this session is connected to. Free Download
mod_auth_useragent2 is an Apache module that can be used to limit access to documents by means of the User-Agent. Free Download
WSGIUserAgentMobile is created as a useful HTTP mobile user agent string parser. Free Download
Agent is the Transportable Agent Perl module. Free Download
HTTP::MobileAgent::JPhone Perl module is a J-Phone implementation. Free Download