REWRITE::post_process¶
Description¶
When REWRITE::post_process is called
(without any arguments), it will return a “0” to signify that it is
off, or an “1” to signify that it is on. By default, it is off. Use
the command “REWRITE::post_process 1” to turn on the post process
functionality and “REWRITE::post_process 0” to turn it off. When
post_process is on, the
REWRITE_RESPONSE_DONE event is
triggered. Otherwise, the REWRITE_RESPONSE_DONE event is ignored.
Syntax¶
REWRITE::post_process <arg>
REWRITE::post_process <arg>¶
- Triggers the REWRITE_RESPONSE_DONE event. Without the argument, it will return a boolean.
Examples¶
when REWRITE_REQUEST_DONE {
if { "[HTTP::host][HTTP::path]" eq "www.external.com/contents.php" } {
# Found the file we wanted to modify
REWRITE::post_process 1
}
}