Example: web.set_option
In the following example, the set_option function sets the decoding and redirection options:
// Disables decoding web.set_option("DecodeContent", "No", new String[]{"LAST"}); // Enables decoding web.set_option("DecodeContent", "Yes", new String[]{"LAST"}); /* Disables redirection. If redirection is required in following action functions, a warning is issued. */ web.set_option("MaxRedirectionDepth", "0", new String[]{"LAST"}); // Sets the maximum redirection depth to 10. web.set_option("MaxRedirectionDepth", "10", new String[]{"LAST"});