Chapter 11

Advanced Policies: Sending HTTP Service Callouts to Applications

193

calloutName is the name of the HTTP callout policy that you are configuring.

argument is one of the arguments that you supplied when you configured the callout, including returnType, parameters, fullReqEx, and so on.

After unsetting the configuration, use the set command to apply any new settings.

Examples

unset httpCallout myCallout -parameters

unset httpCallout myCallout -headers

unset httpCallout myCallout -resultExpr

To delete a callout policy using the NetScaler command line

At a NetScaler command prompt, type:

rm policy httpCallout calloutName

Where calloutName is the name of the HTTP callout policy that you are deleting.

Example

rm policy httpCallout myCallout

To view a callout policy using the NetScaler command line

At a NetScaler command prompt, type:

show httpCallout

Invoking an HTTP Callout Policy

You can invoke the callout from a policy or another entity that uses advanced expressions (for example, a Rewrite action). For a list of features that support HTTP callouts, see “About Calling Out to an External Application,” on page 186.

You can invoke an HTTP callout policy by including the following in an advanced expression:

SYS.HTTP_CALLOUT(calloutName)

Only HTTP.RES based advanced expressions can be used to build the result.

Note that you must know the return type of the HTTP callout policy that you are invoking. The expression must conform to the return type of the invoked policy. For example, if the return type of the HTTP callout policy is TEXT, the following expression is valid:

Page 207
Image 207
Citrix Systems 9.2 manual Invoking an Http Callout Policy, 193, To delete a callout policy using the NetScaler command line