This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

request.getHeader("Referer"); is returning null in IE  RSS feed

 
soni lal
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have to get the referral URL.

I tried with following method in javascript:
a) document.referrer
b) window.document.referrer

Both are returning correct value in safari and mozilla but in IE both are returning space.

I tried to use Java API method : request.getHeader("Referer");

This is also returning correct value in safari and mozilla but in IE it is returning null.

I am really surprised that how every method is returning space or null in IE.


Does anyone have any idea about it?

Please help me!! I am not getting any other way which can work in all browser.

Need your help.


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
143
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can never expect the Referer header to always have a value.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!