This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Getting Client Details - server side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting Client Details - server side" Watch "Getting Client Details - server side" New topic
Author

Getting Client Details - server side

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Hi,

How can i get the following details from a client request..

1) Client IP - request.getRemoteAddr();
2) Browser getHeader("User-Agent") - Will this be suffiecient..i have my doubts
- Name (for IE8, got MSIE 7.0)
- Version

3) Client OS -
4) System Info
5) Referrer URL request.getheader("Referer");

Or we need to send these details from client to server through javascript...

Regards
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Why don't you print out all parameters that come in to check whether what you need is inlcuded or not?


JDBCSupport - An easy to use, light-weight JDBC framework -
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Well let me rephrase my question

Is it possible to read 2) 3) 4) from the request object ...or any other way (when i say any other way ..its non-explicit way of client sending them as request.getParameters)
 
GeeCON Prague 2014
 
subject: Getting Client Details - server side