On 3.2.1 it works for me. Make sure you are actually getting to the page
using a method which would generate a referrer. Just typing the link in the
browser address bar will not do it. You need to make a dummy html file with
a link to your test page and click on the link to see it.
-----Original Message-----
From: David M. Rosner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:10 PM
To: [EMAIL PROTECTED]
Subject: HTTP Referer Field Not Appearing
Hi All,
For some reason I can't get the Referer header field from any of my JSP
pages. I'm using the following code:
String strReferringURL = request.getHeader( "referer" ) ;
I also tried looking at all of the headers in the request, but it doesn't
look like this is including all of the headers:
for (Enumeration e = request.getHeaderNames() ; e.hasMoreElements() ;) {
Log.getInstance().logError( (String) e.nextElement() );
}
Is this because my browser is not sending all of the fields (including
referrer), or could it be the way that I have Tomcat configured?
Thanks!
-dave