-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All,
On 3/11/2009 4:51 PM, Christopher Schultz wrote: > Rainer, > > On 3/10/2009 12:19 PM, Rainer Jung wrote: >> 1) There is no standard http header named REMOTE_ADDR. Not even within >> Tomcat. So whatever you get out of this header depends completely on >> whoever set it for you. It might not exist or contain garbage. > > Sure there is. It's been there forever: > > http://hoohoo.ncsa.uiuc.edu/cgi/env.html > http://www.ietf.org/rfc/rfc3875 Sorry about that; I was thinking CGI /environment variables/, not /HTTP headers/. Given the difference, I would say that these two calls are /rarely/ guaranteed to return the same value: request.getRemoteAddr() request.getHeader("REMOTE_ADDR") ...because, as Rainer points out, there is no standard REMOTE_ADDR header. Sorry for polluting the list. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkm4JRkACgkQ9CaO5/Lv0PAHBACgsiu23cahM3UAKxWdmIiJCO2Z YakAmwdS49qsYc48Fgay+AhF/RtNKK15 =Ak46 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org