opensubscriber
   Find in this group all groups
 
Unknown more information…

r : rpc-user@xml.apache.org 1 December 2004 • 5:40PM -0500

Re: Re: Way to obtain client IP / Port?
by jochen.wiedmann

REPLY TO AUTHOR
 
REPLY TO GROUP




<br>
> Best bet if you need some informations about the request<br>
> patch the server so you get all the (cgi) variables like<br>
> REMOTE_HOST, HTTP_X_FORWARDED_FOR, ... whatnot.<br>
<br>
No need for patching. Dedicated methods (like HttpServletRequest.getRequestURI(), HttpServletRequest.getResponsePath(), ...) or generic access to header lines (HttpServletRequest.getHeader(String) or HttpServletRequest.getHeaders(String)) are already there. And if you are referring to patching the XmlRpc server: Simply change your servlet to put the HttpServletRequest object into a ThreadLocal variable and you have everything.<br>
<br>
<br>
Jochen<br>
<br>



<br>--<br><!-- AdSpace freenet EMO Webmail Banner -->
<a href="http://adserver.freenet.de/click.ng/site=fn&prod=chetools&kat=rub&tbl=webmail&ppos=1&TransactionID=1101894053188907&rgtg=256" target="_blank"><img src="http://adserver.freenet.de/image.ng/site=fn&prod=chetools&kat=rub&tbl=webmail&ppos=1&TransactionID=1101894053188907&rgtg=256" border="0"></a><!-- / AdSpace -->


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.