Request.UrlReferrer NULL的HTTPS [英] Request.UrlReferrer is NULL for HTTPS

查看:380
本文介绍了Request.UrlReferrer NULL的HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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.

这篇关于Request.UrlReferrer NULL的HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆