(This would better belong to netscape.public.mozilla.netlib)

John wrote:
var
URI=Components.classes["@mozilla.org/network/standard-url;1"].getService(Com
ponents.interfaces.nsIURI);

That's insane... not only are URIs not a service, they are also not supposed to be created via the component manager. Instead, use the newURI function of the IO service:
var ios = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
var URI = ios.newURI("http://foo";, "", null);

Also, your code seems to never initialize the URI?

var
ProxyAutoConfig=Components.classes["@mozilla.org/network/proxy-auto-config;1
"].getService Components.interfaces.nsIProxyAutoConfig);

FWIW that interface will change in Gecko 1.8.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to