This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User Agent String???

 
Jon Tsatsonis
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does any one know how you can extract this using Servlets???
Thanks,
Jon.
 
henley
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String browser = request.getHeader("User-Agent");
 
Heitor Bembom
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.getHeader("User-Agent");
Is returning "null" if I use a Mac. It works fine with Windows. Does anybody knows why it is not working on Macs? Is there any other method I can use?
Thanks,
Heitor Bembom
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic