var Request = require("sdk/request").Request; Request({ url: "http://MeinWebServer/datei.txt", onComplete: function (response) { var inhalt = (response.text); console.log("Inhalt:" + inhalt); } }).get();