INetHttpCommand.AcceptLanguage

Syntax

AcceptLanguage: String;

None;

Description

The AcceptLanguage property sets preferred server response languages to the request.

Comments

The language tag is set as property value. Tag consists of language code (two-letters code according to ISO 639-1 or three-letters code according to ISO 639-2), country or region code can be also specified after the - character.

The * value specifies that response can be in any language.

The weight coefficient can be specified in addition to determine language selection priority.

AcceptLanguage := "*"

AcceptLanguage := "ru"

AcceptLanguage := "en-US"

AcceptLanguage := en-US,en;q=0.5

AcceptLanguage := fr-CH, fr;q=0.9, en;q=0.8, *;q=0.5

AcceptLanguage := ru-RU, ru;q=0.9, en-US;q=0.8, en;q=0.7, *;q=0.5

Example

The example of use is given in description of the INetCommand.Start method.

See also:

INetHttpCommand