Example: web_set_option

In the following example, the web_set_option function sets the decoding and redirection options:

// Disables decoding
web_set_option("DecodeContent", "No", LAST );

// Enables decoding
web_set_option("DecodeContent", "Yes", LAST );

// Disables redirection. If redirection is required in following action functions, a warning is issued.
web_set_option("MaxRedirectionDepth", "0", LAST );

// Sets the maximum redirection depth to 10.
web_set_option("MaxRedirectionDepth", "10", LAST );