Request.UrlReferrer NULL的HTTPSUrlReferrer、Request、HTTPS、NULL

由网友(徒手岁月)分享简介:我使用Request.UrlReferrer.AbsoluteUri在我的项目来获得在我的应用程序托管的URL。我能够得到的网址,如果我从HTTP主机重定向,但我得到空,如果我从https开头的主机重定向。我怎样才能UrlReferrer绝对URI的两个http和https?I am using "Request.U...

我使用Request.UrlReferrer.AbsoluteUri在我的项目来获得在我的应用程序托管的URL。我能够得到的网址,如果我从HTTP主机重定向,但我得到空,如果我从https开头的主机重定向。我怎样才能UrlReferrer绝对URI的两个http和https?

I am using "Request.UrlReferrer.AbsoluteUri" in my project to get the URL where my application is hosted. I am able to get the URL, if I am redirected from "http" host, but I am getting null, if I am redirected from "https" host. how can I get "UrlReferrer AbsoluteUri" of both "http and https"?

推荐答案

使用HTTPS感知检查工具检查招潮蟹实际HTTP数据。许多浏览器根本的不发送引用的通信通过HTTPS,在这种情况下,根本就当的没有办法得到它的。

Check the actual http data using a https-aware inspector like fiddler. Many browsers simply don't send the referrer when communicating over https, in which case there is simply no way to get it.

如果您的的的原始站点,你可以添加一些东西到查询字符串作为替代,但仅此而已。

If you own the origin site, you could add something into the query-string as a substitute, but that's about it.

阅读全文

相关推荐

最新文章