I did a google search and found that PHP uses:

$_SERVER, which would give the following result, should I visit a page:

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16

is their any functionality in java that will do the same??

thanx

Recommended Answers

All 3 Replies

request.getHeader("User-Agent"

request.getHeader("User-Agent"

thanx man

No option to edit posts here? ) missing, and I can't see any EDIT button to rectify it :( . Mark as solved if your got the solution.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.