aspose file tools
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

Win a copy of The Software Craftsman this week in the Agile forum!
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!
It is sorta covered in the JavaRanch Style Guide.
subject: Getting referer from the header