Share this page

# Example: web_set_sockets_option

In the following example, the web_set_sockets_option function sets a cipher list:

    /* Use RC4-MD5 cipher for SSL */
    web_set_sockets_option("SSL_CIPHER_LIST", "RC4-MD5");
    /* Prevent downloading of images from unwanted_server */
    web_set_sockets_option("DISALLOW_HOSTS",
        "a372.g.unwanted_server.net;a372.g.unwanted_server.net");
    /* Sets the client's preferred IP address */
    web_set_sockets_option("USER_IP_ADDRESS", "200.100.100.100");

In the following examples, the web_set_sockets_option function performs pre-emptive authentication.

    // Turn on pre-emptive authentication for web server. The pre-emptive authenticate scheme is always “BASIC”.
    web_set_sockets_option("INITIAL_AUTH","BASIC");

    // Turn on pre-emptive authentication for web server. The pre-emptive authenticate scheme is always “NTLM”.
    web_set_sockets_option("INITIAL_AUTH","NTLM");

    // Turn on pre-emptive authentication for web server. The pre-emptive authenticate scheme is always “KERBEROS”.
    web_set_sockets_option("INITIAL_AUTH","KERBEROS");

    // Turn off pre-emptive authentication for web server.
    web_set_sockets_option("INITIAL_AUTH","NONE");

    // Do the same for proxy server.
    web_set_sockets_option("PROXY_INITIAL_AUTH","BASIC");
    web_set_sockets_option("PROXY_INITIAL_AUTH","NTLM");
    web_set_sockets_option("PROXY_INITIAL_AUTH","KERBEROS");
    web_set_sockets_option("PROXY_INITIAL_AUTH","NONE");

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: