On Mar 21, 7:28 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > How do I examine the response body and make modifications, if > > necessary, before passing this to the browser. > > You have to put the data through a stream converter (generally by setting it > to > a type that the browser can't handle and registering a stream converter for > that
> type). That will only work for loads in a Window, though. > I try to inspect/modify the responses from AJAX type of requests. any other options for this to work? Thanks! Wayne > > I searched this group and found a long thread titled " How can > > retrieved content be manipulated before being displayed by the > > browser?" But the cited code did not work in my extension. > > Seehttp://www.chiark.greenend.org.uk/~sgtatham/bugs.html > > > Also, for getResponseHeader(), is there any way to enumerate all > > headers in the response? > > http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/netwerk/protocol/... > > -Boris _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
