Skip To Content

INTEGRAL

INTEGRAL DSL Reference Guide

Jump directly to: 

::my.app.GetOtherVar(string, default_val = "")

This function returns the value of the requested system-generated string variable.

Parameters

string

A string containing the name of the system-generated string variable to return. The following strings are currently supported:

See the examples below showing some possible values associated with the above variables.

default_val

A string containing the default value of the system-generated string variable.

Return Value

The function returns a string containing the value of the requested system-generated string variable, if that variable exists. If the variable does not exist, the function returns default_val.

Example 1

::my.app.Print(::my.app.GetOtherVar("host"));

Result:

testing.example.com

Example 2

::my.app.Print(::my.app.GetOtherVar("cookie"));

Result:

auth_0_2-18295-249_dt2b40ffffffff9110df4f4c37

Example 3

::my.app.Print(::my.app.GetOtherVar("url", "default.i"));

Result:

form_get.i

Example 4

::my.app.Print(::my.app.GetOtherVar("bt", 0));

Result:

1

Example 5

::my.app.Print(::my.app.GetOtherVar("boundary"));

Result:

---------------------------1119586077631481125439084401

Example 6

::my.app.Print(::my.app.GetOtherVar("client_ip_addr4"));

Result:

127.0.0.1