const Cc = Components.classes; const Ci = Components.interfaces; const Cr = Components.results; var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);