11.5.2 AddHeader Method

Adds a request header.

Input Arguments

Name

Type

Mandatory

Description

Name

String (Unicode)

Yes

The name of the header.

Value

String (Unicode)

Yes

The value of the header.

 

Return Value

None

Examples

The following example add a request header called X-VERSION.

Define_Com Class(#XPRIM_HttpRequest) Name(#Request)

 

#Request.Options.AddHeader Name('X-VERSION') Value('1.0')