Get Request Info Activity
Description:
Gets information about the current HTTP request.
Inheritance Hierarchy:
System.Object
System.Activities.Activity
System.Activities.CodeActivity
Geocortex.Workflow.Activities.GetRequestInfo
Function:
This activity provides access to various properties of the current HTTP request, such as the Uri
, UserAgent
, UserHostAddress
, and Referrer
.
The RequestInfo
object is only populated if the workflow was initiated by an HTTP request. When this activity executes in the simulator, the object is empty.
In a Workflow:
You could use this activity to determine which UserAgent
(web browser) the current user is using. Alternatively it can generate a client token for a secured map service using the Referrer
or UserHostAddress
with the Generate Token activity.
Properties:
Name | Description |
---|---|
Misc |
|
Display Name |
GetRequestInfo You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain. |
Out Arguments |
|
Request Info |
The Note that the |
The RequestInfo Class:
The Geocortex.Workflow.Runtime.RequestInfo
type exposes the following properties:
ApplicationPath
: Gets or sets the application's virtual root path on the server.ApplicationUri
: Gets or sets the application's URI, not including the current path and query string.Headers
: Gets the collection of HTTP headers.Culture
: Gets the user preferred culture of the request.Path
: Gets or sets the virtual path of the current request.Referrer
: Gets or sets the HTTP referrer.Token
: Gets or sets the token associated with the request.Uri
: Gets or sets the URI.UserAgent
: Gets or sets the user agent.UserHostAddress
: Gets or sets the user host address.UserLanguages
: Gets a sorted string array of client language preferences.
Version Information:
Supported from: Geocortex Essentials 3.10.