Thursday, August 23, 2007

闲得无聊,用手机上上这几个"有名"的网站

测试一下网站对手机浏览的友好度,和手机显示这几个网站的效果.

*测试目标网站:
  • 网易 http://www.163.com
  • 百度 http://www.baidu.com
  • ebay http://www.ebay.com
  • Google http://www.google.com
  • 空中网 http://www.kong.net
  • live space http://sevenever.space.live.com
  • 7ever http://www.sevenever.com
  • 新浪 http://www.sina.com
  • slashdot http://slashdot.org
测试工具:
浏览器: Opera 8.00
系统: Motorola E6(E690) Linux kernel 2.4.20

测试方法:
使用浏览器浏览各网站. 当然我还没有烧钱到乱用GPRS上网的地步, 我是在自己的Debian PC和E6之间建立了Ethernet On USB, 然后通过PC做gateway, 让E6上网的.
看看我们用的工具:

PC连着手机

用来浏览的手机

这是一次HTTP访问过程的抓包
GET / HTTP/1.1
User-Agent: MOT-MOTOROKR E6/1.0/R533_G_11.12.02P Mozilla/4.0 (compatible; MSIE 6.0; Linux; MOTOROKR E6; 781) Profile/MIDP-2.0 Configuration/CLDC-1.1 Opera 8.00 [
Host: www.baidu.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, multipart/mixed, application/vnd.wap.multipart.mixed, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: zh-cn,en
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Cookie: BAIDUID=******************************
Cookie2: $Version=1
Cache-Control: no-cache
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers

HTTP/1.1 200 OK
Date: Thu, 23 Aug 2007 14:34:22 GMT
Server: BWS/1.0
Content-Length: 1742
Content-Type: text/html
Expires: Thu, 23 Aug 2007 14:34:22 GMT
Cache-Control: max-age=0
Content-Encoding: gzip

从中可以看出
1.HTTP RESPONSE使用了gzip压缩,这可以大大减少流量,帮我们省钱.
2.HTTP REQUEST中的User-Agent信息说明浏览器是移动终端的,如果服务器能根据此信息判别浏览器,则可以提供定制的页面,利于手机浏览器显示.

背景就介绍到这里,那么这些网站的表现都怎么样呢?不要走开,休息之后马上回来...

0 Comments:

Post a Comment

<< Home