Re: [問題] firefox開網頁

看板Network作者 (ww)時間17年前 (2008/08/26 01:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《xsoho (當兵中....)》之銘言: : 我用firefox開 http://www.keepon.com.tw/ 結果網址會顯示成 : http://www.keepon.com.tw/htmldata -找不到這個頁面 : 但若用IE開卻沒有問題,請問為什麼會這樣? 這似乎是 server 端或是網頁程式上刻意作的,當 client 是 IE 時,就餵出 default.asp 如果不是,就會重導到 /htmldata 這個不存在的 URL ◎ 用 wget 去抓網頁,送出 IE 的 agent string,可以抓到網頁: wget -U "Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)" 'http://www.keepon.com.tw/' --2008-08-26 01:03:21-- http://www.keepon.com.tw/ Resolving www.keepon.com.tw... 59.120.215.226 Connecting to www.keepon.com.tw|59.120.215.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 108378 (106K) [text/html] Saving to: `index.html' 100%[=======================================================================================>] 108,378 91.8K/s in 1.2s 2008-08-26 01:03:23 (91.8 KB/s) - `index.html' saved [108378/108378] ◎ 當 wget 的 agent string 被指定為 Firefox 的時,就會重導到 htmldata,然後檔案不存在所以得到個 404 wget -U "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16" 'http://www.keepon.com.tw/' --2008-08-26 01:02:48-- http://www.keepon.com.tw/ Resolving www.keepon.com.tw... 59.120.215.226 Connecting to www.keepon.com.tw|59.120.215.226|:80... connected. HTTP request sent, awaiting response... 302 Object moved Location: http://www.keepon.com.tw/htmldata [following] --2008-08-26 01:02:48-- http://www.keepon.com.tw/htmldata Reusing existing connection to www.keepon.com.tw:80. HTTP request sent, awaiting response... 404 Not Found 2008-08-26 01:02:48 ERROR 404: Not Found. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.117.191.250
文章代碼(AID): #18ikPiOH (Network)
討論串 (同標題文章)
文章代碼(AID): #18ikPiOH (Network)