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.
Also, for getResponseHeader(), is there any way to enumerate all
headers in the response?
Thanks,
Wayne
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 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.
See http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
> Also, for getResponseHeader(), is there any way to enumerate all
> headers in the response?
-Boris
> 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
You can always override the protocol handler and do your own thing... It'll be
pretty painful, though.
-Boris