473,657 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UrlReferrer is null when the referrer is ACTUALLY from a https url

Hi,

Here is my problem:
I created a try.htm on my server, which contains a link to the default.aspx page.

if I use http://localhost/try.htm, and click the link, then in default.aspx, I could get the correct HttpContext.Cur rent.Request.Ur lReferrer.

but if I use https://localhost/try.htm (my server could use https), and click the link, then in default.aspx, the correct HttpContext.Cur rent.Request.Ur lReferrer is null.

Is that by design that UrlReferrer is null when it is from a https url?

If so, how could I still get the https://localhost/try.htm in default.aspx? if not, how should I correct it?

Thanks
Jiong
Nov 15 '05 #1
0 3329

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
25575
by: Yoyo | last post by:
Hi all! I am developing an intranet app and have a problem with the Request.UrlReferrer object. I use it to keep a "linkstack" of all pages visited on the app to let the user surf thru pages (the IE toolbar is not visible). I tested it ok on intranet and internet with win2k clients. The problem which happens with XP clients is that SOMETIMES the
4
4181
by: Harley | last post by:
i have found a problem when using Request.UrlReferrer. if i call the page using a javascript function, the referrer is null... i need to call a page and open it on a specific browser size, with no toolbar, menu, etc. and also need to check that the call comes from a specific page. how to make request.UrlReferrer work?
1
3184
by: | last post by:
I've got \\root\folder\Page2.aspx that I want to controll access to, by establishing a rule that says "previous URL must be '\\root\folder\Page1.aspx' (which did password validation). The code snippet below does 1) allow valid Page_Load if referring URL was 'Page1', and 2) disallows Page_Load if the *initial* access attempt was PRIOR to any valid load of 'Page2'... <code> // In Page_Load... // check the prior URL and make sure our...
7
28549
by: Ivan Demkovitch | last post by:
Hi! Here is what I'm doing: I have Login.aspx with code to do forms authentification and I have this line at the end: Response.Redirect(Request.UrlReferrer.ToString()); I have other (non-ASP.NET) pages that post to Login.aspx. THis way I accomplish asp.net authentification.
1
2030
by: tony collier | last post by:
Hi I have this declaration on most of my pages for the UrlReferrer. String referrer=Request.UrlReferrer.ToString(); This works fine apart from when the user first visits the site on the home page, which results in the following error
3
3348
by: Oney | last post by:
I created two iss folder under my aspx project and I redirected each one of them to same aspx page by IIS that is test.aspx. on the page load of test.aspx I have to catch where the request come in! (what is the previous link or reqest) I try to use Httpcontex.Current.Request.UrlReferrer.AbsoluteUri but it returns null how can I solve this problem? any ideas ???
6
6354
by: saden_paki | last post by:
I am having this problem, that Request.UrlReferrer comes out to be Nothing, when a user hits a button on a html page which only have this button, on this button's onClick javascript event I have used location.href to redirect the page to an aspx page, there I try to extract the Request.UrlReferrer which comes out to be null.. When I used the mozilla based(firefox) I was able to get the Request.UrlReferrer info. is there anyway that I...
4
3058
by: Logician | last post by:
Objective To get linking domain on an affiliate program, ie linking site--->my site-->write cookie-->track visitor-->report to affiliate Current from linking site http://merrows.co.uk?.....
0
1447
by: Tony | last post by:
I'm trying to capture referrer information. the requests are the first lines of code in the page load sub. Request.UrlReferrer.tostring 'produces the name on of my site not the referrer I've tried this code similar to an example in help Dim HttpReq As Uri = Request.UrlReferrer labMessage.Text = Request.UrlReferrer.Host ListBox2.Items.Add(HttpReq.Port & " (abs path)")
0
8402
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8315
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8734
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4164
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1627
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.