1 # TODO: Need more tests here
6 comment => "append content",
10 SecDebugLog "$ENV{DEBUG_LOG}"
12 SecAction "phase:1,setvar:tx.test=test"
13 SecAction "phase:2,append:'APPEND: \%{tx.test}'"
16 debug => [ "Added content to bottom: APPEND: test", 1 ],
20 content => qr/APPEND: test$/,
22 request => new HTTP::Request(
23 GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
30 comment => "prepend content",
33 SecContentInjection On
34 SecDebugLog "$ENV{DEBUG_LOG}"
36 SecAction "phase:1,setvar:tx.test=test"
37 SecAction "phase:2,prepend:'PREPEND: \%{tx.test}'"
40 debug => [ "Added content to top: PREPEND: test", 1 ],
44 content => qr/^PREPEND: test/,
46 request => new HTTP::Request(
47 GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",