Request () mvSQL runtime function in Jitterbit App Builder
Summary
The Request() function returns information about the current HTTP request.
Note
This function was added in App Builder 4.45.
Information about the current URL and HTTP headers can also be obtained in the Request Inspector page.
Syntax
Request(<parameter>)
Parameters
The following parameters are valid and can be used with the Request() function:
-
baseurl: The root URL of the application, for example:https://example.com/App-Builder. -
scheme: The scheme of the HTTP request, eitherhttporhttps. -
ishttps: A boolean that indicates whether the request uses HTTPS encryption or not. -
hostname: The hostname, typically a DNS name or IP address. -
port: The port number. If the scheme's default port is being used (80for HTTP or443for HTTPS),NULLwill be returned. -
host: The name of the host and the port. -
basepath: The path to the root of the application. -
header: The HTTP header. When using this parameter, you should also include as a second argument the header you want to see information about.
Returns
What gets returned by the Request() function varies depending on the parameter used. See Parameters above.
Examples
-
Request('BaseURL')Returns:
https://example.com/App-Builder -
Request('Scheme')Returns:
https -
Request('IsHTTPS')Returns:
true -
Request('HostName')Returns:
example.com -
Request('Port')Returns:
8080 -
Request('Host')Returns:
example.com:8080 -
Request('BasePath')Returns:
/App-Builder -
Request('Header', 'User-Agent')Returns:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36