On Wed, 28 Aug 2002, Turner, John wrote:

> Date: Wed, 28 Aug 2002 15:30:52 -0400
> From: "Turner, John" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: need to find out the URL of the page that sent the request
>
>
> No, it's a HTTP spec.
>
> Here's my chance to correct Charlie's correction of my original post! :)
>
> I think it should be:
>
> request.getHeader("referer"); (note lower case "r")
>

Actually, header lookups is one of the few places that the servlet spec is
explicitly *not* case sensitive, so either capitalization will work :-).

Craig

> If you want to see an example, check the tomcat examples, the servlet is
> called RequestHeaderExample and the source code should be available in the
> examples directory.
>
> John
>
> > -----Original Message-----
> > From: Peter Choe [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 28, 2002 3:26 PM
> > To: Tomcat Users List
> > Subject: RE: need to find out the URL of the page that sent
> > the request
> >
> >
> > thanks.  but when i tried to do request.getHeader("Referer")
> > it just gave
> > me null.  is this browser specific?
> >
> > Peter Choe
> >
> > At 03:12 PM 8/28/2002, you wrote:
> >
> > >You're right, my bad.
> > >
> > >John
> > >
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to