0

I want to get client machine's OS name from my servlet. I have tried request.getHeader("user-agent") its not gave me correct name. Tell me any other ways...

Kanagaraj M
  • 956
  • 8
  • 18
  • Have a look on this [thread][1]. this look similar to you problem [1]: http://stackoverflow.com/questions/13076057/identify-client-machine-operating-system-by-using-request-object-in-java-web-app – Muneeb Nasir Apr 18 '13 at 16:49
  • Does it help? http://stackoverflow.com/questions/13076057/identify-client-machine-operating-system-by-using-request-object-in-java-web-app – Yogi Apr 18 '13 at 16:51
  • Similar question but its not gave me a answer... – Kanagaraj M Apr 18 '13 at 16:55
  • @KanagarajM: It would be better if you post your code to find client browser and the result string that Java returned to you. – Ravinder Reddy Aug 15 '13 at 15:31

1 Answers1

0

Deliver an HTML page with JavaScript determining the OS. This then can be sent to the server. No java class will be able to access the client PC, and only the headers sent by the browser are available to exploit.

Community
  • 1
  • 1
Joop Eggen
  • 107,315
  • 7
  • 83
  • 138