标签为 "HTTP_X_WAP_PROFILE" 的存档

一些常见的浏览器的 $_SERVER[‘HTTP_USER_AGENT’] 输出信息

PHP 输出 $_SERVER[‘HTTP_USER_AGENT’]

<?php
var_export($_SERVER);
exit;
?>

Ipad:

    [HTTP_HOST] => 10.130.150.186
    [HTTP_USER_AGENT] => Mozilla/5.0 (iPad; U; CPU OS 4_2_1 like Mac OS X; zh-cn) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
    [HTTP_ACCEPT] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    [HTTP_ACCEPT_LANGUAGE] => zh-cn
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_CONNECTION] => keep-alive
    [PATH] => /usr/local/sbin

Firefox x64 4.0b13pre on Windows 7 x64:

    [HTTP_HOST] => localhost
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:2.0b13pre) Gecko/20110307 Firefox/4.0b13pre
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => zh-cn,en-us;q=0.7,en;q=0.3
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_ACCEPT_CHARSET] => UTF-8,*
    [HTTP_KEEP_ALIVE] => 115
    [HTTP_CONNECTION] => keep-alive
    [PATH] => C:Program Files

Firefox x86 3.6.15 on Windows 7 x64:

    [HTTP_HOST] => localhost
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => zh-cn,en-us;q=0.7,en;q=0.3
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_ACCEPT_CHARSET] => UTF-8,*
    [HTTP_KEEP_ALIVE] => 115
    [HTTP_CONNECTION] => keep-alive
    [PATH] => C:Program Files

Chrome x86 10.0.648.133 on Windows 7 x64:

    [HTTP_HOST] => localhost
    [HTTP_CONNECTION] => keep-alive
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
    [HTTP_ACCEPT] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip,deflate,sdch
    [HTTP_ACCEPT_LANGUAGE] => zh-CN,zh;q=0.8
    [HTTP_ACCEPT_CHARSET] => GBK,utf-8;q=0.7,*;q=0.3
    [PATH] => C:Program Files

IE9 x64 9.0.8112.16421 on Windows 7 x64:

    [HTTP_ACCEPT] => text/html, application/xhtml+xml, */*
    [HTTP_ACCEPT_LANGUAGE] => zh-CN
    [HTTP_USER_AGENT] => Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
    [HTTP_UA_CPU] => AMD64
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_HOST] => localhost
    [HTTP_CONNECTION] => Keep-Alive
    [PATH] => C:Program Files

IE9 x86 9.0.8112.16421 on Windows 7 x64:

    [HTTP_ACCEPT] => text/html, application/xhtml+xml, */*
    [HTTP_ACCEPT_LANGUAGE] => zh-CN
    [HTTP_USER_AGENT] => Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_HOST] => localhost
    [HTTP_CONNECTION] => Keep-Alive
    [PATH] => C:Program Files

Firefox x64 3.6.10 on ubuntu 10.10 x64:

 [HTTP_HOST] => localhost
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => zh-cn,zh;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_ACCEPT_CHARSET] => UTF-8,*
    [HTTP_KEEP_ALIVE] => 115
    [HTTP_CONNECTION] => keep-alive
    [HTTP_CACHE_CONTROL] => max-age=0
    [PATH] => /usr/local/sbin:

andorid 2.2自带浏览器,不支持HTML5视频

array (
  'HTTP_HOST' => '192.168.1.4',
  'HTTP_ACCEPT_ENCODING' => 'gzip',
  'HTTP_ACCEPT_LANGUAGE' => 'zh-CN, en-US',
  'HTTP_X_WAP_PROFILE' => 'http://www.htcmms.com.tw/Android/Common/Wildfire/ua-profile.xml',
  'HTTP_ACCEPT_CHARSET' => 'utf-8, iso-8859-1, utf-16, *;q=0.7',
  'HTTP_REFERER' => 'http://192.168.1.4/',
  'HTTP_USER_AGENT' => 'Mozilla/5.0 (Linux; U; Android 2.2.1; zh-cn; HTC_Wildfire_A3333 Build/FRG83D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
  'HTTP_ACCEPT' => 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
  'HTTP_CACHE_CONTROL' => 'no-cache',
  'HTTP_PRAGMA' => 'no-cache',
  'PATH' => '/sbin:/usr/sbin:/bin:/usr/bin',
  'SERVER_SIGNATURE' => '',
  'SERVER_SOFTWARE' => 'Apache/2.2.19 (Unix) PHP/5.3.6',
  'SERVER_NAME' => '192.168.1.4',
  'SERVER_ADDR' => '192.168.1.4',
  'SERVER_PORT' => '80',
  'REMOTE_ADDR' => '192.168.1.14',
  'DOCUMENT_ROOT' => '/home/user1/htdocs/',
  'SERVER_ADMIN' => 'webmaster@dummy-host.example.com',
  'SCRIPT_FILENAME' => '/home/user1/htdocs/test.php',
  'REMOTE_PORT' => '33307',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'REQUEST_METHOD' => 'GET',
  'QUERY_STRING' => '',
  'REQUEST_URI' => '/test.php',
  'SCRIPT_NAME' => '/test.php',
  'PHP_SELF' => '/test.php',
  'REQUEST_TIME' => 1309447458,
)

摘自:http://www.cnblogs.com/sink_cup/archive/2011/03/15/http_user_agent.html