前段时间闹得沸沸扬扬的谷歌退出中国事件,现在已经过去大半个月了。谷歌退出中国的真实原因,以及谷歌今后何去何从,是大家关注的焦点,并且猜测也很多。我不会从政治和经济的角度分析谷歌以后的计划,而是从一个独到的角度得到的结论:谷歌,还会回来。

至少我目前没有发现谁也有这样的观点。从技术上,我得出了谷歌中国还会回来的结论。

我用软件分析了谷歌发给我的 HTTP 头,结果如下:

http://g.cn/

GET / HTTP/1.1

Host: g.cn

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB6

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

HTTP/1.1 301 Moved Permanently 我们可以看到,对于 g.cn , 谷歌是永久重定向到了 google.cn , 因为 HTTP 返回代码是 301.

Location: http://www.google.cn/webhp?source=g_cn

Date: Thu, 08 Apr 2010 05:14:22 GMT

Expires: Thu, 08 Apr 2010 05:14:22 GMT

Cache-Control: private, max-age=2592000

Content-Type: text/html; charset=UTF-8

Server: gws

Content-Length: 235

X-XSS-Protection: 0

———————————————————-

http://www.google.cn/webhp?source=g_cn

GET /webhp?source=g_cn HTTP/1.1

Host: www.google.cn

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB6

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Cookie: (省略)

HTTP/1.1 302 Found 我们可以看到,谷歌将 google.cn 临时重定向到了 google.com.hk , 这里 HTTP 返回代码是 302 而不是 301 !

Location: http://www.google.com.hk/url?sa=p&cki=PREF%3DID%3Dd673974ce85f275b:U%3D4…

Cache-Control: private

Content-Type: text/html; charset=UTF-8

Date: Thu, 08 Apr 2010 05:14:22 GMT

Server: gws

Content-Length: 487

X-XSS-Protection: 0

———————————————————-

http://www.google.com.hk/url?sa=p&cki=PREF%3DID%3Dd673974ce85f275b:U%3D4…

GET (省略)

Host: www.google.com.hk

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB6

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Cookie: (省略)

HTTP/1.1 302 Found

Location: http://www.google.com.hk/webhp?source=g_cn

Cache-Control: private

Content-Type: text/html; charset=UTF-8

Set-Cookie: (省略)

05:14:22 GMT; path=/; domain=.google.com.hk

Date: Thu, 08 Apr 2010 05:14:22 GMT

Server: gws

Content-Length: 239

———————————————————-

http://www.google.com.hk/webhp?source=g_cn

GET /webhp?source=g_cn HTTP/1.1

Host: www.google.com.hk

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB6

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Cookie: (省略)

HTTP/1.1 200 OK

Date: Thu, 08 Apr 2010 05:14:23 GMT

Expires: -1

Cache-Control: private, max-age=0

Content-Type: text/html; charset=UTF-8

Content-Encoding: gzip

Server: gws

Content-Length: 4199

上面的信息显示,谷歌将 google.cn 重定向到 google.com.hk 是临时重定向,而不是永久重定向。这就是谷歌无声的暗示!谷歌终将重返中国大陆

原创文章,转载请注明来源:http://euyuil.com/1146/googlecn-will-return-tech-reason/