下列情况是从浏览器的地址栏正常取得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> |
温馨提示:喜欢本站的话,请收藏一下本站!