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

Move this thread to PHP forum

do you mean JavaScript?

if so:

navigator.userAgent

nah I mjeant java...but I found out


thanx

request.getHeader("user-agent")

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.