views:

248

answers:

2

Hello!

This is a simple question, but I didn´t found any documentation about this. When an applet makes a request, how is the user agent of the request. I want to know the applet user-agent expression to detect if a request comes from an applet.

I make two test, with IE7 and Firefox 3.0.5 with JDK 1.6.0_03 and the user agent was "Mozilla/4.0 (Windows 2003 5.2) Java/1.6.0_03" in both, but I can´t generalize from two test.

Thanks in advance, Jonathan.

+1  A: 

I think you can set the user-agent in an http header... so whats the point?

sadly you can, which makes the header basically worthless
annakata
A: 

Better later than never.

The browsers IE, Safari, Firefox and Chrome lets the Java applet's request with user agent header "Mozilla/4.0 (operative system info ) Java/1.6.0_03" . Opera puts its own header instead of the applet header.

Hope this helps somebody.

Jonathan Barbero