Show TOC

Manipulating Header FieldsLocate this document in the navigation structure

Use

You can delete, change, or append header fields using the statements below. You can execute header field manipulations in succession. The sequence in the action file is also the sequence of execution.

Procedure

Use the following syntax for lines in the action file.

        
<headerop> <name> [<value>]
         

The values mean the following:

Name

Meaning and Possible Values

<headerop>

Operation executed on header fields. Possible operations are:

ABAP : If the header field <name> exists, it is deleted

SetHeader : Sets the header field <name> to value <value>

SetHeaderIfEmpty : As SetHeader, but only execute it if the header field is empty

AppendHeader : Appends the specified value <value> to an existing header field. If there is not yet a header field, one is created with the value of <value>.

<name>

Name of Header Field

Note

Header field names are always case insensitive.

<value>

For SetHeader, SetHeaderIfEmpty and AppendHeader this is the value that is to be set or appended. Request or system values can be used here.

Example

The file can contain the following lines:

...

SetHeader clientProtocol %{SERVER_PROTOCOL}

SetHeader X-SAP-WEBDISP-AP %{SERVER_ACCESS_POINTS}

RemoveHeader Referer

...

This corresponds to the following entries (in this sequence):

  • The header field clientProtocol is set to the value of the variable SERVER_PROTOCOL

  • The header field X-SAP-WEBDISP-AP is set to the value of the variable SERVER_ACCESS_POINTS

  • The header field Referer is removed