users@glassfish.java.net

Problem with Request Header Referer

From: <glassfish_at_javadesktop.org>
Date: Thu, 20 Nov 2008 10:08:01 PST

I have a web application in which a javascript sends a request which contains referer header. I am not able to receive this header in a servlet filter when I try to do httpServletRequest.getHeader("referer"). I tried Referer as well and it does not work.

Upon printing all the headers and their values, I found out that the referer header appears as "-------" and its value also is something like ----:-----------:--------------

I am setting the referer header as

Referer http://localhost:8080/index.jsp (seen from firebug console)

I am wondering how I can get the Referer header?
Thanks
Ajit
[Message sent by forum member 'bhate' (bhate)]

http://forums.java.net/jive/thread.jspa?messageID=317903