Just export http_proxy on your machine.(bashrc, profile, environment .. whatever)
diff --git a/Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp b/Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp
index f17ac6c..bb93511 100644
--- a/Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp
+++ b/Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp
@@ -71,6 +71,13 @@ WK_EXPORT int WebProcessMainGtk(int argc, char* argv[])
g_object_set(session, SOUP_SESSION_SSL_USE_SYSTEM_CA_FILE, TRUE,
SOUP_SESSION_SSL_STRICT, FALSE, NULL);
+ const char *httpProxy = g_getenv("http_proxy");
+ if (httpProxy) {
+ SoupURI *proxyUri = soup_uri_new(httpProxy);
+ g_object_set(session, SOUP_SESSION_PROXY_URI, proxyUri, NULL);
+ soup_uri_free(proxyUri);
+ }
+
GOwnPtr<char> soupCacheDirectory(g_build_filename(g_get_user_cache_dir(), g_get_prgname(), NULL));
GRefPtr<SoupCache> soupCache = adoptGRef(soup_cache_new(soupCacheDirectory.get(), SOUP_CACHE_SINGLE_USER));
soup_session_add_feature(session, SOUP_SESSION_FEATURE(soupCache.get()));