Thanks Nevo,
Having read the source code of some browser using WebKit, i found that we
must set proxy using the following three lines,
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
SoupSession* pSession = webkit_get_default_session();
SoupURI* pURI = soup_uri_new("http://<proxy server address>:<port>");
g_object_set( pSession, "proxy-uri", pURI, NULL );
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
and you could also retrieve environment http_proxy to get the proxy setting
and set the proxy using the code above.
Best wishes,
Yu Fei
2009/9/7 Nevo <[email protected]>
> Im assuming you are using libsoup as its network backend, then there's a
> environment variable for the network proxy for latest libsoup . But
> unfortunately , I simply didn't remember that, you may check the ChangeLog
> in libsoup package , try to grep "http_proxy" or "HTTP_PROXY".
>
> Nevo
>
> 2009/9/7 余飞 <[email protected]>
>
>> Hi, all,
>>
>> I've write a simple browser using WebKit under Ubuntu. And it can open
>> local web pages.
>> But when i use it to access internet, it doesn't work although i export
>> http_proxy.
>> So, how can i change the proxy setting of WebKit manually in the code?
>> Thanks a lot!
>> Sincerely,
>> Fei, Yu
>>
>> _______________________________________________
>> webkit-help mailing list
>> [email protected]
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>>
>>
>
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help