Link to home
Start Free TrialLog in
Avatar of richardsimnett
richardsimnett

asked on

Detecting HTTP browser type in java

Hello,
I have an app which I have written which serves as an HTTP Server. I want to be able to detect cgi information such as the browser type that the request is coming from how do I accomplish this?

Worth 500 points.

Thanks,
Rick
ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of richardsimnett
richardsimnett

ASKER

mayankeagle,
what would that look like as far as an HTTP request is returned?

THanks,
Rick
objects,
Will that servlet thing work if I am not using j2ee? I am using j2se standard edition, with a custom http listener.

Thanks,
Rick
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok...
got it....
thanks,
Rick
You can use request.getHeaders () to get the headers in an Enumeration and then enumerate through them.