Home > Configuration > Rewrite > setrewritepolicy_action

setrewritepolicy_action

Use this method to set name of the rewrite action to perform if the request or response matches this rewrite policy.
There are also some built-in actions which can be used. These are:
* NOREWRITE - Send the request from the client to the server or response from the server to the client without making any changes in the message.
* RESET - Resets the client connection by closing it. The client program, such as a browser, will handle this and may inform the user. The client may then resend the request if desired.
* DROP - Drop the request without sending a response to the user.

Syntax



Parameters

name

Name of the rewrite policy to modify.
This is mandatory parameter.

actioN

Name of the rewrite action to perform if the request or response matches this rewrite policy. There are also some built-in actions which can be used. These are: * NOREWRITE - Send the request from the client to the server or response from the server to the client without making any changes in the message. * RESET - Resets the client connection by closing it. The client program, such as a browser, will handle this and may inform the user. The client may then resend the request if desired. * DROP - Drop the request without sending a response to the user.

Return Value

Returns simpleResult

See Also