令人兴奋的Google Suggest
好一段时间没去逛google labs,今天去的时候发现多了一个Google Suggest。
试用了一下发现又是一个好玩的东西,是提示搜索一类的东西,当你输入几个字符,google suggest便会提示你10则以所输入字符为为前缀串的热门关键字。
更令人惊叹的是,提示的速度竟然比我电脑上的单机板的金山词霸2005的提示速度还快~~~~。肯定又是一个google在ajax上的又一力作,用ieHttpHeaders分析了一下,当输入字符harry时
1 GET http: //www.google.com/complete/search?hl=en&js=true&qu=harr HTTP/1.0
2 Accept: */*
3 Accept-Language: zh-cn
4 Referer: http://www.google.com/webhp?complete=1&hl=en
5 UA-CPU: x86
6 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAHoAAAAYABgAkgAAAAwADABIAAAAEgASAFQAAAAUABQAZgAAAAAAAACqAAAABYKIogUCzg4AAAAPaABuAGEAbgBlAHQAdwBrAGEAaQBfAEMAaABlAG4AQwBIAEUATgBXAEUATgBLAEEASQBfYrUSQYhdagAAAAAAAAAAAAAAAAAAAABQBmv/8PzD28psBMXjOdh7/s2dGrSc2Q4=
7 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
8 Host: www.google.com
9 Proxy-Connection: Keep-Alive
10 Cookie: PREF=ID=1d1e07e694338d01:NW=1:TM=1125880180:LM=1125880180:S=amERQRMrAY_B33cx
11
12 HTTP/1.1 200 OK
13 Proxy-Connection: close
14 Connection: close
15 Via: 1.1 ISASRVHK01
16 Date: Tue, 11 Oct 2005 06:50:13 GMT
17 Content-Type: text/html; charset=utf-8
18 Server: Auto-Completion Server
19 Cache-Control: private, x-gzip-ok=""
2 Accept: */*
3 Accept-Language: zh-cn
4 Referer: http://www.google.com/webhp?complete=1&hl=en
5 UA-CPU: x86
6 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAHoAAAAYABgAkgAAAAwADABIAAAAEgASAFQAAAAUABQAZgAAAAAAAACqAAAABYKIogUCzg4AAAAPaABuAGEAbgBlAHQAdwBrAGEAaQBfAEMAaABlAG4AQwBIAEUATgBXAEUATgBLAEEASQBfYrUSQYhdagAAAAAAAAAAAAAAAAAAAABQBmv/8PzD28psBMXjOdh7/s2dGrSc2Q4=
7 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
8 Host: www.google.com
9 Proxy-Connection: Keep-Alive
10 Cookie: PREF=ID=1d1e07e694338d01:NW=1:TM=1125880180:LM=1125880180:S=amERQRMrAY_B33cx
11
12 HTTP/1.1 200 OK
13 Proxy-Connection: close
14 Connection: close
15 Via: 1.1 ISASRVHK01
16 Date: Tue, 11 Oct 2005 06:50:13 GMT
17 Content-Type: text/html; charset=utf-8
18 Server: Auto-Completion Server
19 Cache-Control: private, x-gzip-ok=""
学习。
All the posts in this blog are provided "AS IS" with no warranties, and confer no rights. Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 2.5 China Mainland License.