Adding a header retention policy

Add a header retention policy to retain certain message headers.

About this task

Several DataPower® services can inject or suppress HTTP headers. The user agent operates on the message after the service. The policy can be defined to retain the following headers:
Accept-Encoding
The HTTP Accept-Encoding request header. If selected, the traffic includes the Accept-Encoding header independent of whether the DataPower service specifies compression. Compressed responses are accepted.
Range
The HTTP Range request header.
TE
The HTTP TE request header.
MQMD
The IBM® MQ MQMD header.

Procedure

  1. In the search field, enter user.
  2. From the search results, click User agent.
  3. Click the name of a user agent configuration.
  4. Click the Header retention policy tab.
  5. Add a policy.
    1. Click Add.
    2. In the URL matching expression field, enter a shell-style expression to be the matching pattern for the URL set.
    3. From the Header retention list, select the checkboxes for the headers to retain.
    4. Click Apply.
  6. Optional: Repeat the previous step to add another policy.
  7. Click Apply to save changes to the running configuration.
  8. Click Save to save changes to the persisted configuration.