Accessing request headers
Hi,
I'm currently writing an applet which logs various details about the installed jvm that's running it. That part is working fine, when the applet starts I read the required system properties and have the applet load an image with those values as parameters of the image URL.
However, I've also been asked to log the browser version that the user is using, as the web server's access logs are not configured to include this. Is it possible for an applet to access the request headers (in particular, the user agent string) for either the page that contains the applet tag or the request that downloaded the applet's jar? I don't see anything obvious on the AppletContext that would do this.
Failing that, is it possible to get this user agent string via (browser-independent) javascript? I could then use javascript to dynamically write the applet tag in the page, and pass the value as a parameter to the applet.
Andrew.
--
http://pseudoq.sourceforge.net/ Open source java Sudoku application

