首页 > 代码库 > 什么情况下HttpContext.Current.Request.UrlReferrer为空
什么情况下HttpContext.Current.Request.UrlReferrer为空
The situations where this ServerVariable works include the following methods of a browser loading a URL:
- clicking on a straight HTML <a href> link;
- submitting a form, using POST or GET, from a submit button, <input type=image> or client-side script (form.submit())
- clicking on a Favorite, History, or the recently-typed URLs list;
- clicking on ‘Home‘ in IE‘s toolbar, or an item in IE‘s ‘Links‘ toolbar;
- using location.href or location.replace() in client-side JScript/JavaScript/VBScript;
- using HierMenus (details);
- typing the URL directly in the browser and hitting Enter or clicking ‘Go‘;
- launching a clickable URL from an e-mail or MS Office document;
- using Response.Redirect / Server.Transfer;
- using Response.AddHeader (302) or <meta http-equiv=refresh> to redirect;
- loading the URL with XML (see Article #2173);
- misspelling the variable name (many people assume HTTP_REFERRER).
什么情况下HttpContext.Current.Request.UrlReferrer为空
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。