[webkit-help] Regarding Proxy settings
Deepak Mundra
deepak.m at allaboutif.com
Thu Apr 1 01:58:10 PDT 2010
Dear Wajahat,
Thanks for the reply . But i noticed that soup creation function is
called only once in the begining of the program .. so my function wont be
called again ..
On Thu, Apr 1, 2010 at 7:35 AM, mwas <webkit.meister at gmail.com> wrote:
> Hi,
>
> You need to call this function while creating soup session in
> WebCore/Platform/network/soup/ResourceHandleSoup.cpp
> and have your enable/disable flag read from gconf instead.
>
> I hope this would suffice.
>
> thanks
> Wajahat
>
>
>
> On Mon, Feb 22, 2010 at 12:27 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 at runtime , this will
>> not work(disable/enable)
>>
>>
>> Actually i want to configure proxy at run time .. So that i need not to
>> restart the browser ..
>>
>>
>> Please help
>>
>> Thanks
>>
>> Deepak
>>
>> _______________________________________________
>> webkit-help mailing list
>> webkit-help at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20100401/81387652/attachment.html>
More information about the webkit-help
mailing list