Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

tomcat jsp HTTP_REFER returning null;

Thread view: 
koshy - 19 Jul 2006 12:42 GMT
I am having a problem where a call to request.getHeader("HTTP_REFERER")
is returning null;
I have tried the following

HTTP_REFERER
Http_Referer
http_referer
REFERER
referer

Is there a solution?
Why is referer always returning null;
On my watch window I cannot find a header with any of the above
headerNames.
How can I find who is the referer?
regards
Koshyh
Alexander - 19 Jul 2006 13:29 GMT
> I am having a problem where a call to request.getHeader("HTTP_REFERER")
> is returning null;
[quoted text clipped - 13 lines]
> regards
> Koshyh

You can get the referrer via

  request.getHeader("referer")

However you should note that it isnt a mandatory field and usually only
available if the client sends it at all respectively if the request
originates from a link. Direct requests do not contain a referrer.

Alexander
Moiristo - 19 Jul 2006 19:58 GMT
>> I am having a problem where a call to request.getHeader("HTTP_REFERER")
>> is returning null;
[quoted text clipped - 21 lines]
> available if the client sends it at all respectively if the request
> originates from a link. Direct requests do not contain a referrer.

Besides, most firewalls automatically remove the referer header. It is
better to find a workaround, like using sessions or something.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.