Well
String referer = req.getHeader("Referer");
Log.say("INTERNALE: referer is ["+referer+"]");
Date d = new Date( );
Log.say("INTERNALE: ["+d+"] Dumping HTTP header START");
Enumeration e = req.getHeaderNames( );
while(e.hasMoreElements()){
String name = (String)e.nextElement();
String value = req.getHeader(name);
Log.say("INTERNAL: name ["+name+"] value ["+value+"]");
}
Log.say("INTERNALE: ["+d+"] Dumping HTTP header END");
}
Should get the Referer
But it gets a null
Why would it get a null ? Every page has a referrer.
On Thu, 2005-08-11 at 18:14 +0100, Oscar Mechanic wrote:
> Hi
>
> Does anyone know how to get the refferal address from a servlet
> request I have dumped the header and it does not seem to be there. On
> apache it was an enviroment variable called HTTP_REFERER (May of had 2
> f's)
>
> Thanks
> Oscar
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]