Steffen Heinzl wrote: > My main question is: How can I modify the data, so the modified web site > is displayed in the browser?
It's probably easiest if you change the contentType property of the channel and register a stream converter to convert from that to */*. The stream converter can then do whatever it wants with the data. > Another question is why I cannot use subject.asyncOpen. Instead I have > to open a new channel to the URI's address, and then call asyncOpen(). Because the channel got already opened by the code that wanted the data... You can't open a channel twice. Note that your approach of opening a new channel (probably) causes another connection to the server BTW, looking at your code: var scriptableStream = Components.classes["@mozilla.org/scriptableinputstream;1"].getService(Components.interfaces.nsIScriptableInputStream); You shouldn't use getService for streams; use createInstance (your code does that correct in another place) -christian _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
