Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Accept-Language: zh-cn Host: zhilee.aehk.com Referer: http://www.cnblogs.com/birdshome/archive/2005/03/11/113723.html User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Accept-Language: zh-cn Host: zhilee.aehk.com Referer: http://www.cnblogs.com/bluefee/archive/2005/03/28/127455.html User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322) UA-CPU: x86
var ua = navigator.userAgent; if ( ua.indexOf("SV1") != -1 ) { if ( ua.indexOf("NT 5.1") != -1 ) { // windows xp + sp2 } else if ( ua.indexOf("NT 5.2") != -1 ) { // windows 2003 + sp1 } else { // wrong user agent string } }