tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arieh Markel <Arieh.Mar...@Central.Sun.COM>
Subject Re: Can't get Referrer in HttpRequest in Tomcat?
Date Thu, 27 Jul 2000 14:04:16 GMT

> Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm
> X-No-Archive: yes
> list-help: <mailto:tomcat-dev-help@jakarta.apache.org>
> list-unsubscribe: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> list-post: <mailto:tomcat-dev@jakarta.apache.org>
> Delivered-To: mailing list tomcat-dev@jakarta.apache.org
> From: Michael Taylor <mtaylor@emeraldcave.net>
> To: tomcat-dev <tomcat-dev@jakarta.apache.org>
> Subject: Can't get Referrer in HttpRequest in Tomcat?
> Cc: mdt@qad.com
> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
> 
> I tried the following code in Tomcat in an extension tag that I'm writing.
> 
> ((HttpServletRequest)pageContext.getRequest()).getHeader("Referrer")
> 
> The result is always null.  The log files for Apache show that the Referrer is
> coming in just fine to Apache.

I believe the header name is 'Referer'.

Here is a chunk from my own code:
  
	     String referer = req.getHeader("Referer");
	     
Arieh
  
> 
> Why can't I get this information in Tomcat requests?
> 
> What am I doing wrong?  Is Tomcat only HTTP1.0 and Referrer is part of 1.1 or
> something?   This would be a pretty sad thing, because Referrer is a very
> useful feature.
> 
> Thanks,
> 
> - Mike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

--
 Arieh Markel		                Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: arieh.markel@sun.COM           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)


Mime
View raw message