Redirect
Definition
The Redirect
verb is used to redirect the call flow to a different set of FlexML instructions located at a different URL.
warning
Any verb listed after Redirect
gets ignored.
Supported Attributes
Attribute | Data Type | Description |
---|---|---|
method | string | The type of request made to the action URL. Values accepted in this field are POST or GET . The default value is POST . |
Example
In this example, the flow of the call will be redirected to the URL specified in the Redirect
tags. This URL is requested using the GET
method. The Say
instruction after Redirect
is ignored.
<Response>
<Redirect method="GET">http://www.example.com/path/to/handler</Redirect>
<Say>Thank you</Say>
</Response>
Nesting Rules
- You cannot nest other verbs or nouns within the
Redirect
verb. - You cannot nest the
Redirect
verb within other FlexML verbs.