• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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: 65518
105
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!