ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jochen.wiedm...@freenet.de
Subject Re: Re: Way to obtain client IP / Port?
Date Wed, 01 Dec 2004 09:40:53 GMT
<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 -->


Mime
View raw message