Hi,
Is there any way – using firefox API - to get the raw HTML received from
the server? I have found few solutions, but none of them fits to what I
need:
- innerHTML of current document – little use because there are chances
of being aleterd by some javascript;
- implement some HTTP client and send another request with that url –
out of the question (losing POST data, try to fetch twice the same data);
- using view-source protocol – will make another request to fetch the
data;
- nsIWebBrowserPersist - is altering data by encoding some of html
entities (">" will become ">");
- XMLSerializer with "new XMLSerializer()).serializeToString(document)"
but it still mess with tags.
All these tests were made using fiddler proxy (www.fiddlertool.com) as a
proxy and the content of what I have saved into the file had differences
from what I’ve seen in fiddler.
In IE (maybe someone knows the equivalent flow) I have implemented it
using IPersistStreamInit and IStream interfaces.
Thanks.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom