On Thursday 22 April 2004 15:22, Dirksn wrote:
> [EMAIL PROTECTED],
>
> I�m using a tool called bart�s pe, a software like windows pe.
> Mozilla (Version 1.6a)Embed works fine when I boot from this cd, but I
> can�t access the internet because I am using a Proxy-Server.
> In the normal Mozilla I can enter a Proxy at the Preferences,
> but I don�t know how to tell the embeded version that I�ve got
> a proxy and it has to use it.
> Is there a possibility to use a proxy?
Hello,
nsCOMPtr<nsIPref> prefs = do_GetService(NS_PREF_CONTRACTID, &rv);
// 0 = no proxy
// 1 = manual proxy settings
// 2 = automatic proxy settings
prefs->SetIntPref("network.proxy.type", 1);
prefs->SetCharPref("network.proxy.http", "localhost");
prefs->SetIntPref("network.proxy.http_port", 8383);
prefs->SetCharPref("network.proxy.ssl", "localhost");
prefs->SetIntPref("network.proxy.ssl_port", 8383);
Michal
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding