Hi, On Mon, 22 Oct 2007, David Barrett wrote:
> What is the right way to observe not only the headers, but the bodies > of GET and POST requests/responses? > > So far as I can tell, it sounds like the right approach is to set the > nsIChannel::notificationCallbacks to something that has > OnDataAvailable overridden, and then perhaps trap the body somehow, > and maybe do a man-in-the-middle technique where I spawn off a new > request after dismantling the first. But, as you can see, I'm not > really sure what I'm talking about. > > Is there some easier way to do this? There is no easy way to do this, you can see a discussion at: http://groups.google.com/group/mozilla.dev.tech.network/browse_thread/thread/62af84e6d35ab77d/df5a79e36a4caf24#df5a79e36a4caf24 and code sample: http://www.mozdev.org/source/browse/firekeeper/src/components/ I really hope some mechanism for making it simpler will be added in the future. Regards, Jan _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
