[webkit-gtk] Regarding Proxy settings

Deepak Mundra deepak.m at allaboutif.com
Thu Feb 18 22:44:13 PST 2010

Dear All

     I found some code in mailing list to set proxy and i wrote a function
to set proxy as below ..

void set_proxy(uint8_t enable)
    char        *proxyaddr      = NULL;
    SoupURI     *pURI           = NULL;

    SoupSession* session = webkit_get_default_session();

     proxyaddr = getenv("browser_proxy");  /* i will set browser_proxy env
 before calling this function*/

            pURI = soup_uri_new(proxyaddr);

    if(pURI && enable)
        g_object_set( session, "proxy-uri", pURI, NULL );
        g_object_set( session, "proxy-uri", NULL, NULL );

        printf("Browser Proxy Address = %s\n",proxyaddr);

    if (pURI)

I am calling this  function in GtkLauncher.c in main function . So it will
work properly  .. But if i call this same function in runtime , this will
not work

Actually  i want to configure proxy at run time .. So that i need not to
restart the browser ..

Please help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20100219/8443e7af/attachment.html>

More information about the webkit-gtk mailing list