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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok...
got it....
thanks,
Rick
got it....
thanks,
Rick
You can use request.getHeaders () to get the headers in an Enumeration and then enumerate through them.
ASKER
what would that look like as far as an HTTP request is returned?
THanks,
Rick