Hi 大家好,
我使用 Mac 版的 Firefox 12.0
在連線到這個網站
https://www.cathaylife.com.tw/bc/wps/portal/B2C/Member/Register的時候會發生問題,網頁不會顯示內容,只有
代碼:
Error 404: There is no content available. rc='/wps/themes/html/B2CWeb/js/jquery-1.3.2.min.js'>
我試過 Nightly build,一樣是這個問題。但是 Mac 上面其他瀏覽器(Safari 5.1.5、Chrome 20.0.1115.1 dev、還有 Opera 11.61)都可以正確顯示這個網頁。
一度懷疑是 Javascript 的問題,不過我用 Safari 的開發工具,看到 Safari 對這個網址做出請求的時候,Server 回應 200 OK,而且是產生了完整的 html 內容;不過當我改用 Curl 發送 request 的時候,Server 卻回應 404 Not found,並顯示跟上面 Firefox 顯示的一樣的錯內容,真是讓人覺得很納悶啊,即使我都已經讓 curl 模擬 safari 送出 Req header 了,有人知道這是什麼問題嗎?
以下是 curl 的指令和回復
代碼:
$ curl -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3' -H 'Cache-Control: no-cache' -H 'Pragma: no-cache' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -v https://www.cathaylife.com.tw/bc/wps/portal/B2C/Member/Register* About to connect() to www.cathaylife.com.tw port 443 (#0)
* Trying 202.154.204.222... connected
* Connected to www.cathaylife.com.tw (202.154.204.222) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=TW; ST=Taiwan; L=Taipei; O=Cathay Life Insurance Co., Ltd; OU=IT; CN=www.cathaylife.com.tw
* start date: 2012-01-10 06:28:26 GMT
* expire date: 2013-01-11 15:59:59 GMT
* common name: www.cathaylife.com.tw (matched)
* issuer: C=TW; O=TAIWAN-CA.COM Inc.; OU=SSL Certification Service Provider; CN=TaiCA Secure CA
* SSL certificate verify ok.
> GET /bc/wps/portal/B2C/Member/Register HTTP/1.1
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3
> Host: www.cathaylife.com.tw
> Cache-Control: no-cache
> Pragma: no-cache
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>
< HTTP/1.1 404 Not Found
< content-language: en-US
< content-type: text/html;charset=UTF-8
< date: Tue, 01 May 2012 12:12:41 GMT
< p3p: CP="NON CUR OTPi OUR NOR UNI"
< vary: User-Agent,Cookie
< ibm-web2-location: http://wasvip.cathaylife.com.tw/wps/portal/
< $wsep:
< cache-control: no-cache
< pragma: no-cache
< expires: Thu, 01 Jan 1970 00:00:00 GMT
< Set-Cookie: ccsession=201205012012410a57303ac40221abb; Domain=cathaylife.com.tw; Path=/
< Set-Cookie: ccguid=201205012012410a57303ac40221abb; Domain=cathaylife.com.tw; Path=/; Expires=Tue, 31 Dec 2019 15:59:59 GMT
< Set-Cookie: AMWEBJCT!%2Fbc!JSESSIONID=0000aUaWco1RfyYnbWC2Z3ml2oH:13ov98cd6; Path=/
< Set-Cookie: AMWEBJCT!%2Fbc!BIGipServerB2C_WEB=976246538.20480.0000; Path=/
< Set-Cookie: PD_STATEFUL_e1dee6a0-7258-11e1-b9aa-001a64a74e42=%2Fbc; Path=/
< Set-Cookie: TS5ae281=81851b569d9b54e4a5818d17d2e15b813683dc76887b86b34f9fd2995010722ab779e2489eea92f4208b4c79aedafe9fd7fb5c52; Path=/
< Set-Cookie: TS2bfdaa=57bf71ff6975262840b7b7d03d6f30aa3683dc76887b86b34f9fd299ab771e3258699cdba62862c058699cdb; path=/; domain=cathaylife.com.tw
< Transfer-Encoding: chunked
<
Error 404: There is no content available.
rc='/wps/themes/html/B2CWeb/js/jquery-1.3.2.min.js'></script>
<script type="text/javascript" language="javascript" src='/bc/wps/themes/html/B2CWeb/js/funs.js'></script>
</head>
* Connection #0 to host www.cathaylife.com.tw left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
Patrick