WebmasterID logoWebmasterID
User agents

Java and OkHttp user agents

JVM HTTP clients send recognisable default user agents: Java's built-in URL connection uses a Java/version token, and the widely used OkHttp library uses an okhttp/version token. Both mark scripted or app traffic from the Java ecosystem, including many Android apps. This page covers the two patterns.

Verified against primary sources

Two JVM default tokens

The Java platform's built-in HTTP client (the classic URLConnection) sends a default user agent containing a Java/version token. Separately, OkHttp — a very widely used HTTP client library — sends an okhttp/version token by default.

Both identify a JVM-based client rather than a browser. OkHttp in particular is common inside Android apps, so an okhttp token often represents app-originated traffic rather than a desktop script.

Reading JVM client traffic

Seeing Java/ or okhttp/ tokens is routine: server-side integrations, backend jobs, and Android apps making API calls all produce them. The token says nothing about intent on its own — judge by rate, paths, and rule compliance.

Both defaults can be overridden, and many apps set their own user agent on top of OkHttp, so the absence of these tokens does not rule out a JVM client. Match on the stable token and confirm specifics against the respective documentation.

How it appears in analytics and logs

A Java/version token is the JVM's built-in HTTP client; an okhttp/version token is the OkHttp library, common in Android apps. Both are non-browser clients, with acceptability judged by behaviour.

Diagnostic use case

Recognise JVM HTTP clients by the Java/ and okhttp/ default tokens so server-to-server and Android app traffic is counted as automation.

What WebmasterID can help detect

WebmasterID recognises the Java/ and okhttp/ default tokens server-side and classifies them as automation, separate from human analytics, with unknown clients kept in an honest bucket.

Common mistakes

Privacy and accuracy notes

These tokens name libraries, not a person. WebmasterID records such requests as bot events, never as human profiles.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.