Help with proxy name and pass with GeckoFX?

I am trying to set the proxy username and password. I saw this message ( http://geckofx.org/viewtopic.php?id=832 ), and I thought it could be a similar setting for username / password, for example:

Skybound.Gecko.GeckoPreferences.User ["network.proxy.user"] = (user); Skybound.Gecko.GeckoPreferences.User ["network.proxy.password"] = (password);

But so far nothing has worked. Can anyone help? I would be very grateful!

I use VB.net if this helps. Thank!!

+3
source share
2 answers

, - 1. -, :

Uri website = new Uri("http://stackoverflow.com");
System.Net.IWebProxy defaultproxy = System.Net.WebRequest.GetSystemWebProxy();
Uri proxy = defaultproxy.GetProxy(website); //no actual connect is done

if (proxy.AbsoluteUri != website.AbsoluteUri) {
    Skybound.Gecko.GeckoPreferences.User["network.proxy.http"] = proxy.Host;
    Skybound.Gecko.GeckoPreferences.User["network.proxy.http_port"] = proxy.Port;
    Skybound.Gecko.GeckoPreferences.User["network.proxy.ssl"] = proxy.Host;
    Skybound.Gecko.GeckoPreferences.User["network.proxy.ssl_port"] = proxy.Port;
    Skybound.Gecko.GeckoPreferences.User["network.proxy.type"] = 1;
    //0 – Direct connection, no proxy. (Default)
    //1 – Manual proxy configuration.
    //2 – Proxy auto-configuration (PAC).
    //4 – Auto-detect proxy settings.
    //5 – Use system proxy settings (Default in Linux).     
}
+3

. , about:config firefox, . , , . , -, , - , .

, , , , GeckoFX - ?

0

Source: https://habr.com/ru/post/1748159/


All Articles