tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Corey A. Johnson" <cjohn...@cniweb.net>
Subject Re: User IP Address
Date Fri, 22 Jun 2001 17:26:13 GMT
case matters as well i believe..

Cj

Randy Layman wrote:

>         Does the case matter here, or just dropping the "r"?
>
>         Randy
>
> > -----Original Message-----
> > From: Corey A. Johnson [mailto:cjohnson@cniweb.net]
> > Sent: Friday, June 22, 2001 11:58 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Re: User IP Address
> >
> >
> > one thing to note that i discovered the hard way.. referrer
> > should be spelled
> > as so:
> >
> > request.getHeader("referer")
> >
> > not sure why... but i beat my head against the wall for an
> > hour... until i
> > tried the alternate spelling...
> >
> > Cj
> >
> >
> >
> > Randy Layman wrote:
> >
> > >         request.getRemoteAddr() will get the user's IP Address
> > >         requet.getRemoteHost() will do DNS lookup on the address
> > >
> > >         request.getHeader("Referrer") is the referrer, I believe.
> > >
> > >         Randy
> > >
> > > -----Original Message-----
> > > From: SHeyns@LandmarkFeeds.com [mailto:SHeyns@LandmarkFeeds.com]
> > > Sent: Friday, June 22, 2001 10:55 AM
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: RE: User IP Address
> > >
> > > Should be able to query the HTTPServletRequest object to get this
> > > information, try looking there
> > > -----Original Message-----
> > > From: Mark Muffett [mailto:markm@its-axiom.com]
> > > Sent: Friday, June 22, 2001 9:50 AM
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: User IP Address
> > >
> > > Anyone know if it's possible to use JSP / Tomcat to get
> > user IP addresses
> > > (for logging)? - or any other user info that might go to
> > the server (like
> > > referrer)?
> > >
> > > Ideas and sample code would be very welcome...
> > >
> > > Thanks
> > >
> > > Mark
> >
> > --
> > Corey A. Johnson
> > Creative Network Innovations
> > http://www.cniweb.net/
> > 1-800-CNi-5547 ** 1-321-259-1984
> >
> >

--
Corey A. Johnson
Creative Network Innovations
http://www.cniweb.net/
1-800-CNi-5547 ** 1-321-259-1984



Mime
View raw message