How to get referrer page with in JSP

R

Roland

Hi Steven,



Try
request.getHeader("referer");

Matthias
Shouldn't that be
request.getHeader("Referer");
AFAIK, header names are case-sensitive, including the HTTP Referer header.
--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
 
M

Matthias Fraass

Roland said:
Shouldn't that be
request.getHeader("Referer");
AFAIK, header names are case-sensitive, including the HTTP Referer header.

The API-Doc[1] says "The header name is case insensitive." - maybe there
is some toLowerCase() in the implementation.
I also checked it in a debugger and it worked.

Matthias

[1] http://tinyurl.com/5ggjt
 
R

Roland

Roland said:
Shouldn't that be
request.getHeader("Referer");
AFAIK, header names are case-sensitive, including the HTTP Referer
header.


The API-Doc[1] says "The header name is case insensitive." - maybe there
is some toLowerCase() in the implementation.
I also checked it in a debugger and it worked.

Matthias

[1] http://tinyurl.com/5ggjt
Yeah, you're right. I stand corrected.
--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top