Changes with Apache 2.0.19-dev
+ *) New Header directive 'echo' option. "Header echo regex" will
+ cause any headers received on the request that match regex to be
+ echoed to (included in) the response headers.
+ [Bill Stoddard]
*) include/ap_compat.h tested and set APR_COMPAT_H instead of AP_COMPAT_H.
This prevented the inclusion of apr_compat.h. PR #7773
HREF="directive-dict.html#Syntax"
REL="Help"
><STRONG>Syntax:</STRONG></A> Header unset <EM>header</EM><BR>
+<A
+ HREF="directive-dict.html#Syntax"
+ REL="Help"
+><STRONG>Syntax:</STRONG></A> Header echo <EM>header</EM><BR>
<A
HREF="directive-dict.html#Context"
REL="Help"
This directive can replace, merge or remove HTTP response headers. The header
is modified just after the content handler and output filters are run,
allowing outgoing headers to be modified. The action it performs is determined
-by the first argument. This can be one of the following values, as with
-RequestHeader:
+by the first argument. This can be one of the following values:
<UL>
<LI><STRONG>set</STRONG><BR>
<LI><STRONG>unset</STRONG><BR>
The response header of this name is removed, if it exists. If there are
multiple headers of the same name, all will be removed.
+
+<LI><STRONG>echo</STRONG><BR>
+ Request headers with this name are echoed back in the response headers.
+ <EM>header</EM> may be a regular expression. For example, the directive
+ <P>
+ Header echo ^TS*
+ <P>
+ will cause all request headers that begin with TS to be echoed
+ or copied over to the response headers.
</UL>
This argument is followed by a header name, which can include the
-final colon, but it is not required. Case is ignored. For
-add, append and set a value is given as the third argument. If this
-value contains spaces, it should be surrounded by double quotes.
-For unset, no value should be given.
+final colon, but it is not required. Case is ignored for set, append, add
+and unset. The header name for echo is case sensitive and may be a
+regular expression. For add, append and set a value is given as the third
+argument. If this value contains spaces, it should be surrounded by double
+quotes. For unset and echo, no value should be given.
<H3>Order of Processing</H3>