Hi,
I want to get some information from request header using something like the
code bellow but for my requests I receive null.
HttpServletRequest request =
((ServletWebRequest) getRequest())
.getHttpServletRequest();
Some proxies can be configured to forward the real client address:
- Apache ProxyPreserveHost Directive
- Description: Use incoming Host HTTP request header for proxy request
- Syntax: ProxyPreserveHost On|Off
- Default: ProxyPreserveHost Off
- Context: server config,
Thanks, but we are using here an OC4J server so we cant add Apache
ProxyPreserveHost Directive.
-Original Message-
From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com]
Sent: Wednesday, July 29, 2009 12:59 PM
To: users@wicket.apache.org
Subject: Re: FW: servlet request
Well.. similar options you can find in OC4J proxy too. Or else you
will not get the client ip (it is not possible to get it if the proxy
does not deliberately pass it).
**
Martin
2009/7/29 Mihai Toma mihai.t...@asf.ro:
Thanks, but we are using here an OC4J server so we can’t add Apache