Re: Client Real Source IP!

2006-09-21 Thread Alexander Khoo
Thanks for the information,Anyone can provide more detail on how this can be done? how the code is done perhaps? - Original Message From: Li <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Friday, September 22, 2006 1:42:14 PM Subject: Re: Client Real Source IP! Sorry Ale

Re: Client Real Source IP!

2006-09-21 Thread Li
Sorry Alexander, Yeah, as Peter said, you can use getHeader(s) from Servlet API. Only if your request header is customized one (like those for telecom), you should read it by yourself. On 9/22/06, Peter Rossbach <[EMAIL PROTECTED]> wrote: You can access the header with ServletRequest.getHead

Re: Client Real Source IP!

2006-09-21 Thread Peter Rossbach
You can access the header with ServletRequest.getHeader, getHeaders, getHeadersNames. Read Servlet Spec 2.4 or 2.5 Headers 4.3 Wrote your own Valve or ServletFilter Regards Peter Am 22.09.2006 um 06:44 schrieb Alexander Khoo: Dear All, We currently have Tomcat Version5 install behi

Re: Client Real Source IP!

2006-09-21 Thread Li
Hi, You need create your own request proecessor to retrieve it. You may have to get http request full length header first and lookup your request header structure and read block by block from the header. A better way is to take a look at few headers and see if the block you need is always after w