File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Getting Client Details - server side

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 980

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...

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: 980
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)
I agree. Here's the link:
subject: Getting Client Details - server side
jQuery in Action, 3rd edition