getApplicationProperty()

Returns additional information about the client (browser) connected to the HTTP server or checks whether a stylesheet is used.

Synopsis

anytype getApplicationProperty(string property);

Parameters

Parameter Description
property

The following entries are possible:

  • client_ip - The IP address of the client connected to the HTTP server

  • client_ua - The User Agent header value (if available in the HTTP request)

  • platformName - The platform plugin's name (can be xcb (on X11), android, windows, ulc)

  • deviceClass - The class of the connected device, e.g. used to recognize the mobile device type.

Moreover it is possible to query if a stylesheet is used:

  • styleSheet - The stylesheet content when loaded automatically by the UI from the installation path

Return value

Returns information about the client, depending on the given property parameter

Description

Returns additional information about the client (browser) which is connected to the HTTP server or queries whether a stylesheet is used.

Example

main()
{
  DebugN(getApplicationProperty("platformName"));
}

Assignment

Miscellaneous functions

Availability

UI