Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
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.


 
Author and ninkuma
Marshal
Posts: 66806
168
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!