Posted on 2008-04-26 22:45
leekiang 閱讀(420)
評論(0) 編輯 收藏 所屬分類:
web開發(fā)
下列情況是從瀏覽器的地址欄正常取得Request.ServerVariables("HTTP_REFERER")的:
1.直接用<a href>
2.用Submit或<input type=image>提交的表單(POST or GET)
3.使用Jscript提交的表單(POST or GET)
下面是Request.ServerVariables("HTTP_REFERER")不能正常取值的情況:
1.從收藏夾鏈接
2.單擊'主頁'或者自定義的地址
3.利用Jscript的location.href or location.replace()
4.在瀏覽器直接輸入地址
5.<%Response.Redirect%>
6.<%Response.AddHeader%>或<meta http-equiv=refresh>轉(zhuǎn)向
7.用XML加載地址
http://www.linux-cn.com/html/program/ASP/20070424/12718.html