tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Kilbride" <j...@kilbride.com>
Subject Re: HTTP Referer Field Not Appearing
Date Wed, 18 Apr 2001 05:24:01 GMT
Could be the capitalization. I use:

String referer = req.getHeader("Referer");

and it works with jdk1.3 and Tomcat 3.2.1.

Thanks,
--jeff

----- Original Message -----
From: "David M. Rosner" <dave@recommend-it.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, April 17, 2001 12:10 PM
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
>


Mime
View raw message