Dela via


2.2.3.190 UserAgent

The UserAgent element is an optional child element of the Set element in Settings command requests that specifies the user agent. The UserAgent element value can be up to 1024 characters in length.

All elements referenced in this section are defined in the Settings namespace.

Command request/response

Parent elements

Child elements

Data type

Number allowed

Settings command DeviceInformation request (section 2.2.1.18)

Set (section 2.2.3.167)

None

string ([MS-ASDTYPE] section 2.7)

0...1 (optional)

The UserAgent element SHOULD contain the information in the User-Agent header. The User-Agent header SHOULD be removed from the HTTP request. The server does not validate the value of the UserAgent element.

Protocol Versions

The following table specifies the protocol versions that support this element. The client indicates the protocol version being used by setting either the MS-ASProtocolVersion header, as specified in [MS-ASHTTP] section 2.2.1.1.2.6, or the Protocol version field, as specified in [MS-ASHTTP] section 2.2.1.1.1.1, in the request.

Protocol version

Element support

2.5

12.0

12.1

Yes

14.0

Yes

14.1

Yes

16.0

Yes

16.1

Yes