File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Getting referer from the header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting referer from the header" Watch "Getting referer from the header" New topic

Getting referer from the header

Fedor Smirnoff
Ranch Hand

Joined: Apr 21, 2003
Posts: 45
Hi I have a flash file that makes a call to my servlet remotly. I am trying to extract the URL from the header using request.getHeader("referer") but I cannot get it, always come up Null. Any ideas how I can do it. Apperantly I can only get Header if the link was actually clicked on and not used within flash.

[ December 01, 2004: Message edited by: Fedor Smirnoff ]
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

i'm moving this to the servlets forum where the javax.servlet.* package gets discussed quite frequently.

Please post your replies there. Thanks!
I agree. Here's the link:
subject: Getting referer from the header
It's not a secret anymore!