Back to product page

UserAgent property


Holds software program name presented to the server.

Type

A String value

Syntax

  • Basic
object.UserAgent [= value]
The UserAgent(object,value) syntax has these parts:
objectAn expression evaluating to an object of type HttpRequest.
valueA String value.

Remarks

When UserAgent property is set, it provides information about program used by the client to the server. This is for statistical purposes and the tracing of protocol violations.

The first white space delimited word must be the software product name, with an optional slash and version designator. Other products which form part of the user agent may be put as separate words.

This property is just a 'shortcut' to Request.Headers("User-Agent") value.

Platforms

Windows