views:

26

answers:

1

Thanks to everyone in advance!

I have attached a nsIWebProgressListener to a xul:browser and was wondering if it was possible to get the raw response data back? Getting the headers and body would be nice, but I am really just looking for the body.

I looked into nsIRequest, which gets passed into all of the methods

(onStateChange,onProgressChange,onLocationChange,onStatusChange,onSecurityChange)

...and could not find anything, any suggestions on how to accomplish this?

Thanks again,

Sam

+1  A: 

For HTTP requests you can use nsITraceableChannel (here's a better page about using it). I'm not sure you can use it from a web progress listener, though.

Nickolay