[webkit-gtk] Regarding Proxy settings

Deepak Mundra deepak.m at allaboutif.com
Mon Mar 22 06:25:36 PDT 2010


Please help

Is it related to SoupCookieJar ?


On Fri, Feb 19, 2010 at 12:14 PM, Deepak Mundra <deepak.m at allaboutif.com>wrote:

> 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*/
>
>     if(proxyaddr)
>             pURI = soup_uri_new(proxyaddr);
>
>     if(pURI && enable)
>         g_object_set( session, "proxy-uri", pURI, NULL );
>     else
>         g_object_set( session, "proxy-uri", NULL, NULL );
>
>     if(proxyaddr)
>         printf("Browser Proxy Address = %s\n",proxyaddr);
>
>     if (pURI)
>         soup_uri_free(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
>
> Thanks
>
> Deepak
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20100322/3b79b126/attachment.html>


More information about the webkit-gtk mailing list