[http://creativecommons.org/licenses/by/3.0/]
This work is licensed under a CC
Attribution 3.0 Unported License [http://creativecommons.org/licenses/by/3.0/]
.mobi for Mobile PagesMobile applications need to address the diversity of clients, and can do so in a variety of ways. In this lecture, we take a brief look at how to implement client-side adaptation, which uses client-side mechanisms (HTML and scripting) to adapt to the capabilities of the client. We also look at server-side mechanisms such as HTTP content negotiation, and at various ways in which mobile-specific content can be published on the web.

host |
www.cylog.org |
user-agent |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729) |
accept |
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
accept-language |
en-us,en;q=0.7,de-de;q=0.3 |
accept-encoding |
gzip,deflate |
accept-charset |
ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
Keep-Alive |
115 |
connection |
keep-alive |
referer |
http://www.google.com/search?q=http+header+display&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a |
content-length |
0 |
GET / HTTP/1.1 Host: www.google.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729) Referer: http://www.rexswain.com/httpview.html Connection: close
HTTP/1.1 200 OK Date: Mon, 19 Apr 2010 16:43:41 GMT Expires: -1 Cache-Control: private, max-age=0 Content-Type: text/html; charset=UTF-8 Set-Cookie: PREF=ID=c28e991dec69844c:TM=1271695421:LM=1271695421:S=ubsNGUpXiUn3I2mg; expires=Wed, 18-Apr-2012 16:43:41 GMT; path=/; domain=.google.com Set-Cookie: NID=33=YSu8-UTI70uOYYVs4Q1AlCK017SE_w6nL_3ApNfs_mM_FdGs6-plZ2IsxR6awHC8Gssg49FxWC-uOpdMJv1PmEiKYq0YEkMeJn79DQd6SdjTfjwrcfwyL3FHSYHwRMKW; expires=Tue, 19-Oct-2010 16:43:41 GMT; path=/; domain=.google.com; HttpOnly Server: gws Connection: close
<!doctype html><html
compression
LoadModule deflate_module modules/mod_deflate.so
# serve HTML as compressed content AddOutputFilterByType DEFLATE text/html
mod_deflate [http://httpd.apache.org/docs/2.2/mod/mod_deflate.html] supports a wide variety of settings<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Flash or GIF</title>
<script type="text/javascript" src="http://www.swiss.com/_layouts/swfobject.js" ></script>
</head>
<body>
<script language="JavaScript" type="text/javascript">
<!--
var altWaitImg = '<img src="http://www.swiss.com/web/img/misc/ani_waiting.gif" alt="" />';
if (deconcept.SWFObjectUtil.getPlayerVersion().major < 7)
document.write(altWaitImg);
else {
var waitSo = new SWFObject('http://www.swiss.com/style%20library/images/misc/ani_waiting.swf', 'waiting', '71', '13', '7', '#fff');
waitSo.addParam("menu", "false");
var waitHtml = waitSo.getSWFHTML();
if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length)
waitHtml += '<noembed>' + altWaitImg + '<'+'/noembed>';
document.write(waitHtml); }
// -->
</script>
<noscript>
<img src="http://www.swiss.com/web/img/misc/ani_waiting.gif" alt="Please wait..." />
</noscript>
</body>
</html>buckets
typein the User-Agent header field
Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
http://m.example.com/some/pageURI navigation
.mobi for Mobile Pageshttp://example.mobi/some/pagemobi DNS TLD to identify the mobile pagehttp://example.com/mobile/some/pagemobileas the first path segment of the URI path
URI navigation