Chapter 11 Advanced Policies: Sending HTTP Service Callouts to Applications 189

Elements in an HTTP Callout Policy

Parameter

Specifies

 

 

Attribute-based

HTTP Method (httpMethod).

request to send to the

Method used in the HTTP request that this callout sends. Valid

server (mutually

exclusive with

values: GET or POST. Default: GET.

sending an

Host expression (hostExpr).

expression-based

request to the server)

Advanced text expression to configure the Host header.

 

Maximum length: 255.

 

The expression can contain a literal value or it can be an advanced

 

expression that derives the value. Examples:

 

"10.101.10.11"

 

"http.req.header("Host")"

 

URL stem expression (urlStemExpr)

 

An advanced string expression for generating the URL stem.

 

Maximum length: 8191.

 

The expression can contain a literal string or an expression that

 

derives the value. Examples:

 

""/mysite/index.html""

 

"http.req.url"

 

HTTP Headers (headers).

 

Advanced text expression to insert HTTP headers and their

 

values in the HTTP callout request.

 

You must specify a value for every header. You specify the

 

header name as a string and the header value as an advanced

 

expression.

 

 

 

Query Parameters (parameters).

 

Advanced expression to insert query parameters in the HTTP

 

request that the callout sends.

 

You must specify a value for every parameter that you configure.

 

If the callout request uses the GET method, these parameters are

 

inserted in the URL. If the callout request uses the POST method,

 

these parameters are inserted in the POST body.

 

You configure the query parameter name as a string and the value

 

as an advanced expression. The parameter values are URL

 

encoded.

 

 

Page 203
Image 203
Citrix Systems 9.2 Attribute-based Http Method httpMethod, Server mutually, Expression that derives the value. Examples