[webkit-gtk] how to set proxy in webkit-gtk1.8.1

Joone Hur joone at kldp.org
Fri Aug 3 08:48:31 PDT 2012

Hi Prasanta,

There is code to deal with proxy in GtkLauncher as follows,

    const char *httpProxy = g_getenv("http_proxy");
    if (httpProxy) {
        SoupURI *proxyUri = soup_uri_new(httpProxy);

This code is a good example of how to set up proxy server, but
soup_session_add_feature_by_type() seems not work properly.
So if you get the proxy server address by calling
g_getenv("http_proxy"), it could work.


On Fri, Aug 3, 2012 at 9:02 PM, Prasanta Sadhukhan <psadhukhan at gmail.com> wrote:
> Hi,
> I have downloaded webkit-gtk 1.8.1 sources from
> http://www.webkitgtk.org/?page=download 1 week ago as it was supposed to be
> a stable release as per the website.
> I have configured and compiled successfully.
> I tried to run the the gtk sample program given here
> http://webkitgtk.org/Cookbook%200.1b.pdf
> but it gives a blank page citing "Cannot connect to the destination
> (www.webkit.org)".
> FYI, I have compiled "soup" library without "--without-gnome" but with
> "--disable-tls-check" so ideally it should pick up http_proxy correctly, I
> guess.
> I also have set up "http_proxy/ftp_proxy/https_proxy" environment variables
> correctly.
> I am not in a position to upgrade my webkit version to latest 1.9.x as of
> now.
> So, could you please suggest as to what should I do to render the webpage
> correctly in 1.8.1?
> Thanks in advance!!
> Regards
> Prasanta
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-gtk

More information about the webkit-gtk mailing list