JGridstart/Java user agents

From PDP/Grid Wiki
Revision as of 09:33, 20 January 2010 by Wvengen@nikhef.nl (talk | contribs)
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. There are differences 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