Share this page

# 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"});

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: