wiki.openwrt.org无法打开的解决办法

http://wiki.openwrt.org/   有些打开(IE 9)有些不行(IE 6  FF)可能是英文版和中文版语言优先级不同。mason改header后能正常打开。

不用扩展的方法:选项---》内容---》页面优先语言----》把en-US添加并上移(证实有效)

 

原因是服务端处理 Accept-Language 有问题.

Lymtics@NASA /tmp
$ wget -d http://wiki.openwrt.org/
DEBUG output created by Wget 1.12 on cygwin.

URI encoding = “GBK”
--2010-12-10 16:32:21--
http://wiki.openwrt.org/
正在解析主机 wiki.openwrt.org (wiki.openwrt.org)... 188.40.166.25
Caching wiki.openwrt.org => 188.40.166.25
正在连接 wiki.openwrt.org (wiki.openwrt.org)|188.40.166.25|:80... 已连接。
Created socket 3.
Releasing 0x0053b5f8 (new refcount 1).

---request begin---
GET / HTTP/1.0
User-Agent: Wget/1.12 (cygwin)
Accept: */*
Host: wiki.openwrt.org
Connection: Keep-Alive

---request end---
已发出 HTTP 请求,正在等待回应...
---response begin---
HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Fri, 10 Dec 2010 08:39:36 GMT
Content-Type: text/html; charset=utf-8
Connection: close
X-Powered-By: PHP/5.3.2-1ubuntu4.2
Set-Cookie: DokuWiki=c3oqione73s2nuudpv3cgp02f1; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: DW6666cd76f96956469e7be39d750cc7d9=deleted; expires=Thu, 10-Dec-2009
08:39:35 GMT; path=/; httponly
Set-Cookie: bb2_screener_=1291970376+59.61.221.62; path=/

---response end---
200 OK

Stored cookie wiki.openwrt.org -1 (ANY) / <session> <insecure> [expiry none] Dok
uWiki c3oqione73s2nuudpv3cgp02f1

Stored cookie wiki.openwrt.org -1 (ANY) / <session> <insecure> [expiry none] bb2
_screener_ 1291970376+59.61.221.62
URI content encoding = “utf-8”
长度:未指定 [text/html]
正在保存至: “index.html”

[ <=> ] 15,844 18.8K/s in 0.8s

Closed fd 3
2010-12-10 16:32:23 (18.8 KB/s) - “index.html” 已保存 [15844]

Lymtics@NASA /tmp
$ wget -d \
> --header="Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=
0.8" \
> --header="Accept-Charset:GB2312,utf-8;q=0.7,*;q=0.7" \
> --header="Accept-Encoding:gzip, deflate" \
> --header="Accept-Language:zh-cn,zh;q=0.5" \
> --header="Cache-Control:max-age=0" \
> --header="Host:wiki.openwrt.org" \
> --header="Connection:keep-alive" \
> --header="Keep-Alive:115" \
> --header="User-Agent:Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) Gecko/20100101 Fi
refox/4.0b7" \
>
http://wiki.openwrt.org/

Setting --header (header) to Accept:text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8
Setting --header (header) to Accept-Charset:GB2312,utf-8;q=0.7,*;q=0.7
Setting --header (header) to Accept-Encoding:gzip, deflate
Setting --header (header) to Accept-Language:zh-cn,zh;q=0.5
Setting --header (header) to Cache-Control:max-age=0
Setting --header (header) to Host:wiki.openwrt.org
Setting --header (header) to Connection:keep-alive
Setting --header (header) to Keep-Alive:115
Setting --header (header) to User-Agent:Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) G
ecko/20100101 Firefox/4.0b7
DEBUG output created by Wget 1.12 on cygwin.

URI encoding = “GBK”
--2010-12-10 16:30:41--
http://wiki.openwrt.org/
正在解析主机 wiki.openwrt.org (wiki.openwrt.org)... 188.40.166.25
Caching wiki.openwrt.org => 188.40.166.25
正在连接 wiki.openwrt.org (wiki.openwrt.org)|188.40.166.25|:80... 已连接。
Created socket 3.
Releasing 0x0053b988 (new refcount 1).

---request begin---
GET / HTTP/1.0
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Host: wiki.openwrt.org
Connection: keep-alive
Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip, deflate
Accept-Language: zh-cn,zh;q=0.5
Cache-Control: max-age=0
Keep-Alive: 115

---request end---
已发出 HTTP 请求,正在等待回应...
---response begin---
HTTP/1.1 500 Internal Server Error
Server: nginx/0.7.65
Date: Fri, 10 Dec 2010 08:37:57 GMT
Content-Type: text/html
Connection: close
X-Powered-By: PHP/5.3.2-1ubuntu4.2
Set-Cookie: DokuWiki=cocapvk5qut0nnu4jq7jq9klh6; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: DW6666cd76f96956469e7be39d750cc7d9=deleted; expires=Thu, 10-Dec-2009
08:37:56 GMT; path=/; httponly
Set-Cookie: bb2_screener_=1291970277+59.61.221.62; path=/

---response end---
500 Internal Server Error

Stored cookie wiki.openwrt.org -1 (ANY) / <session> <insecure> [expiry none] Dok
uWiki cocapvk5qut0nnu4jq7jq9klh6

Stored cookie wiki.openwrt.org -1 (ANY) / <session> <insecure> [expiry none] bb2
_screener_ 1291970277+59.61.221.62
Closed fd 3
2010-12-10 16:30:43 错误 500:Internal Server Error。


Lymtics@NASA /tmp
$ wget -d \
> --header="Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=
0.8" \
> --header="Accept-Charset:GB2312,utf-8;q=0.7,*;q=0.7" \
> --header="Accept-Encoding:gzip, deflate" \
> --header="Cache-Control:max-age=0" \
> --header="Host:wiki.openwrt.org" \
> --header="Connection:keep-alive" \
> --header="Keep-Alive:115" \
> --header="User-Agent:Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) Gecko/20100101 Fi
refox/4.0b7" \
>
http://wiki.openwrt.org/
Setting --header (header) to Accept:text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8
Setting --header (header) to Accept-Charset:GB2312,utf-8;q=0.7,*;q=0.7
Setting --header (header) to Accept-Encoding:gzip, deflate
Setting --header (header) to Cache-Control:max-age=0
Setting --header (header) to Host:wiki.openwrt.org
Setting --header (header) to Connection:keep-alive
Setting --header (header) to Keep-Alive:115
Setting --header (header) to User-Agent:Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) G
ecko/20100101 Firefox/4.0b7
DEBUG output created by Wget 1.12 on cygwin.

URI encoding = “GBK”
--2010-12-10 16:31:42--
http://wiki.openwrt.org/
正在解析主机 wiki.openwrt.org (wiki.openwrt.org)... 188.40.166.25
Caching wiki.openwrt.org => 188.40.166.25
正在连接 wiki.openwrt.org (wiki.openwrt.org)|188.40.166.25|:80... 已连接。
Created socket 3.
Releasing 0x0053b878 (new refcount 1).

---request begin---
GET / HTTP/1.0
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Host: wiki.openwrt.org
Connection: keep-alive
Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip, deflate
Cache-Control: max-age=0
Keep-Alive: 115

---request end---
已发出 HTTP 请求,正在等待回应...
---response begin---
HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Fri, 10 Dec 2010 08:38:57 GMT
Content-Type: text/html; charset=utf-8
Connection: close
X-Powered-By: PHP/5.3.2-1ubuntu4.2
Set-Cookie: DokuWiki=ctovqv0qgrkgdh8rcb7hv6aoc6; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: DW6666cd76f96956469e7be39d750cc7d9=deleted; expires=Thu, 10-Dec-2009
08:38:56 GMT; path=/; httponly
Set-Cookie: bb2_screener_=1291970337+59.61.221.62; path=/

---response end---
200 OK

Stored cookie wiki.openwrt.org -1 (ANY) / <session> <insecure> [expiry none] Dok
uWiki ctovqv0qgrkgdh8rcb7hv6aoc6

Stored cookie wiki.openwrt.org -1 (ANY) / <session> <insecure> [expiry none] bb2
_screener_ 1291970337+59.61.221.62
URI content encoding = “utf-8”
长度:未指定 [text/html]
正在保存至: “index.html.1”

[ <=> ] 15,844 19.3K/s in 0.8s

Closed fd 3
2010-12-10 16:31:44 (19.3 KB/s) - “index.html.1” 已保存 [15844]


Lymtics@NASA /tmp
$ wget --header="Accept-Language:zh-cn,zh;q=0.5"
http://wiki.openwrt.org/
--2010-12-10 16:44:12--
http://wiki.openwrt.org/
正在解析主机 wiki.openwrt.org (wiki.openwrt.org)... 188.40.166.25
正在连接 wiki.openwrt.org (wiki.openwrt.org)|188.40.166.25|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 500 Internal Server Error
2010-12-10 16:44:13 错误 500:Internal Server Error。


Lymtics@NASA /tmp
$ wget --header="Accept-Language:en-US;q=0.5"
http://wiki.openwrt.org/
--2010-12-10 16:44:26--
http://wiki.openwrt.org/
正在解析主机 wiki.openwrt.org (wiki.openwrt.org)... 188.40.166.25
正在连接 wiki.openwrt.org (wiki.openwrt.org)|188.40.166.25|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:未指定 [text/html]
正在保存至: “index.html.2”

[ <=> ] 15,844 11.7K/s in 1.3s

2010-12-10 16:44:28 (11.7 KB/s) - “index.html.2” 已保存 [15844]

转载于:https://my.oschina.net/alphajay/blog/28816

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值