HTTP_REFERER的工作方式 - 中国WEB开发者网络 (http://www.webasp.net) -- 技术教程 (http://www.webasp.net/article/) --- HTTP_REFERER的工作方式 (http://www.webasp.net/article/28/27259.htm) |
| -- 作者:未知 -- 发布日期: 2006-02-10 |
下列情况是从浏览器的地址栏正常取得Request.ServerVariables("HTTP_REFERER")的: 下面我们再看看Request.ServerVariables("HTTP_REFERER")不能正常取值的情况: 显然,Request.ServerVariables("HTTP_REFERER")在多数情况下是不能正常工作的,下面我们看一个例子: ref.htm <meta http-equiv='refresh' content='10;URL=ref.asp'> <form method=GET action=ref.asp name=getform> <a href='ref.asp'>直接链接<p> <a href='#' onclick='window.location.href="ref.asp";return false;'>javascript location</a> <a href='#'onclick='window.location.replace("ref.asp");return false;'>javascript replace</a> <a href='#' onclick='document.getform.submit();return false;'>javascript GET</a> <a href='#' onclick='document.postform.submit();return false;'>javascript POST </a> |
| webasp.net |