JGridstart/Java user agents

From PDP/Grid Wiki
Revision as of 10:13, 21 December 2009 by Wvengen@nikhef.nl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

It is possible to detect on the server-side something about the user's Java environment by inspecting the request headers that Java sends. This is different when a connection is made from the Java program using URLConnection, or when a Java Web Start application is being downloaded.

Java Web Start

Vendor HTTP Header
User-Agent UA-Java-Version
Sun JNLP/1.5 javaws/1.5.0_19 (b02) J2SE/1.5.0_19 1.5.0_19
Sun JNLP/6.0 javaws/1.6.0_17 (b04) Java/1.6.0_17 1.6.0_17
OpenJDK Java/1.6.0_0 (not supplied)

URLConnection

Vendor HTTP header User-Agent
Sun Java/1.5.0_19
Sun Java/1.6.0_17
OpenJDK Java/1.6.0_0