XML Rule
Overview
This type of rule will present you with a text field in which you can put the XML that the underlying software (Paul Tuckey's Url Rewrite Filter) understands. See https://tuckey.org/urlrewrite/manual/4.0/index.html for the documentation.
Advanced settings for type 'proxy'
Drop cookies
When using an advanced rule of type 'proxy', cookies sent by the client will be passed on.
A drop-cookies attribute is available on the <to> element in the XML rule to allow you to not pass on cookies. See below for an example:
<rule> <name>XML Custom Proxy</name> <from>^/test/(.*)$</from> <to type="proxy" drop-cookies="false">http://localhost:8081/$1</to> </rule>
Follow redirects
A followRedirects attribute is available on the <to> element in the XML rule to enable redirects when proxying.
In detail, this means calling the #setRedirectsEnabled method on the configuration of the HTTP client, see RequestConfig.Builder#setRedirectsEnabled
Use system properties
A useSystemProperties attribute is available on the <to> element in the XML rule to use system properties when creating and configuring the HTTP client.
In detail, this means calling the #useSystemProperties method on the HTTP client used, see HttpClientBuilder#useSystemProperties. The 3rd party library will read system properties like https.protocols, https.cipherSuites, http.keepAlive, http.maxConnections, http.agent and use those values if present.