星期六, 一月 07, 2006

firefox的中文域名

有人问我中文的域名是如何实现的.我认为3721则是在你的机器中安装一些流氓来实现的,但是3721并没有在firefox下的扩展或什么东西..怎么在firefox下也实现了中文域名..前几天看到liveheaders;就用这个东东把信息拽下来看了一下..

http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=%E6%96%B0%E6%B5%AA

GET /search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=%E6%96%B0%E6%B5%AA HTTP/1.1
Host: www.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8) Gecko/20051111 Firefox/1.5
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: zh-cn,zh;q=0.8,zh-tw;q=0.5,zh-hk;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: gb18030,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: rememberme=false; PREF=ID=f15f4855d2c30126:NW=1:TM=1126488555:LM=1126617553:GM=1:S=3xxnx6cV4X7XVmw-

HTTP/1.x 302 Found
Location: http://www.sina.com.cn/

哇哈哈~~~原来是google滴东东呀~~~; 那么这个是否就是[手气不错]呢~~~下面是先去了google.com输入了"新浪"再点击[手气不错]后的header信息.

http://www.google.com/search?hl=zh-CN&q=%E6%96%B0%E6%B5%AA&btnI=%E6%89%8B%E6%B0%94%E4%B8%8D%E9%94%99&lr=

GET /search?hl=zh-CN&q=%E6%96%B0%E6%B5%AA&btnI=%E6%89%8B%E6%B0%94%E4%B8%8D%E9%94%99&lr= HTTP/1.1
Host: www.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8) Gecko/20051111 Firefox/1.5
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: zh-cn,zh;q=0.8,zh-tw;q=0.5,zh-hk;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: gb18030,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.google.com/intl/zh-CN/
Cookie: rememberme=false; PREF=ID=f15f4855d2c30126:NW=1:TM=1126488555:LM=1126617553:GM=1:S=3xxnx6cV4X7XVmw-

HTTP/1.x 302 Found
Location: http://www.sina.com.cn/

咦~~没啥不同嘛~~~


GET /search?hl=zh-CN&q=%E6%96%B0%E6%B5%AA&btnI=%E6%89%8B%E6%B0%94%E4%B8%8D%E9%94%99&lr= HTTP/1.1  这一行为手气不错
GET /search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=%E6%96%B0%E6%B5%AA HTTP/1.1  这一行为firefox地址栏内直接输入中文.

上面这一两看来,hl为locale,q当然就是你输入的东东了,btnI应该是一个方式也就是[手气不错]或[I'm feeling lucky], 既然如此就有了一种在firefox下更为直接的使用[手气不错]的方法.是也乎(Z.Q'style)~~~

没有评论: